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 />

We are now ready to add the other fields that we defined earlier: End Date, Event description, and Event<br />

Venue/Address. Follow the same steps as previously described to create the End Date field. When creating<br />

the Event Venue/Address field, select “Text (formatted, long)” for the field type instead of “Date,” since<br />

the values entered for the venue will be a paragraph or two of text. When you’re finished, your list of fields<br />

should look similar to Figure 5-14.<br />

Figure 5-14. All of the Event fields are now listed<br />

Our Event content type is now ready for authors to use. To try our new content type, click the “Back to<br />

site” link in the top left corner of the screen and then click one of the “Add content” links, revealing the list of<br />

content types that we have available on our site.<br />

Our Event content type appears in the list of available content types. Click Event to reveal the content<br />

creation page for our Event content type (see Figure 5-15). The page shows the Event Title, Event description,<br />

Start Date, End Date, and Event Venue/Address fields.<br />

57

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

Saved successfully!

Ooh no, something went wrong!