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 5 ■ Content Types<br />

Figure 5-28. File upload configuration parameters<br />

Figure 5-29 shows the new file upload field on the event creation form.<br />

Figure 5-29. File upload field<br />

Text Area<br />

There will likely be scenarios where you want to provide a field on a content creation form that enables an<br />

author to enter a paragraph or more of text. While you could provide this capability through a text field<br />

(a single-line text-entry box), the more acceptable and standard way is to provide a text area. Extending our<br />

event example, let’s add a new field that will be used to capture driving directions to the venue. To create a<br />

text area, follow the same steps as we used to create other fields in the previous sections. Click the “Add field”<br />

button on the “Manage fields” page for our Event content type and select “Text (formatted, long)” from the<br />

“Add a new field” list of options (refer to Figure 5-17). Enter “Driving directions” in the Label field and then<br />

click the “Save and continue” button.<br />

68

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

Saved successfully!

Ooh no, something went wrong!