18.11.2015 Views

Beginning Drupal 8

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 20 ■ Building a Company Site<br />

Figure 20-8. The latest news from Reuters<br />

Contact Form<br />

Another requirement for our corporate site is to have a contact form where site visitors can submit<br />

requests for information. <strong>Drupal</strong> 8 ships with a Contact module that provides functionality that meets the<br />

requirements of most Contact Us forms. To configure the contact form, click Structure in the secondary<br />

menu, followed by the “Contact form” categories link on the Structure page. The Contact module offers<br />

a “Website feedback” form that is great for general contact requests. Click the Edit link for the “Website<br />

feedback” form and, on the Edit tab, enter the e-mail addresses of the recipients of contact requests from the<br />

website. If you would like to send a response to the visitor who submitted the request, enter a message in the<br />

Auto-reply text area.<br />

Next, click the Manage Form Display tab to see the fields that appear by default on the contact form. The<br />

default fields are for the sender’s name, e-mail address, a subject, a message, and a check box that allows the<br />

user to request that a copy of the message be sent to their e-mail address. You may add new fields by clicking<br />

the Manage Fields tab. For demonstration purposes, we will use the standard fields, as they address all of our<br />

corporate website needs.<br />

Assembling the Site<br />

With the foundational elements in place, it is time to start assembling the rest of the site. We’ll walk through<br />

the requirements, building each section of the site using the tools that were assembled in the previous steps.<br />

219

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!