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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Customizing Your Content Type<br />

Chapter 5 ■ Content Types<br />

At this point we could create a new content item using our Event content type. However, the Event content<br />

type only has two fields, an Event Title and a Body. Our requirements call for an event description, start<br />

date, end date, venue/address, type of seating, assistance available at the venue, type of event and the ability<br />

to provide a file that can be downloaded by the site visitor (e.g., a program). As you can see in Figure 5-8,<br />

<strong>Drupal</strong> automatically creates a Body field, which we will use for the event description.<br />

Figure 5-8. Changing the Label field<br />

We’ll start with changing the Body field by modifying the label that appears on the screen from<br />

“Body” to “Event description,” a better indicator of the type of text to be entered for the person creating the<br />

event. Click the Edit button for the Body field. In the Label field, change “Body” to “Event description”<br />

(see Figure 5-8), and then click the “Save settings” button at the bottom of the form.<br />

After saving the update to the body label, <strong>Drupal</strong> returns you to the “Manage fields” page with the<br />

updated Label, as shown in Figure 5-9.<br />

Figure 5-9. Revised field label<br />

53

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

Saved successfully!

Ooh no, something went wrong!