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.

Chapter 5 ■ Content Types<br />

There are other optional settings that you should consider carefully when creating a new content type.<br />

First are the publishing options. In the left vertical menu, click the “Publishing options” tab (see Figure 5-4).<br />

Figure 5-4. Publishing options<br />

Depending on whether you want content to be automatically published (made viewable on your site<br />

immediately upon saving) and whether you want the content to automatically appear on the homepage<br />

of your website, you may wish to adjust these options. For our Event content type, we want an Event to be<br />

automatically published when they are saved, but we don’t want them to automatically show up on the<br />

homepage. So we will uncheck the “Promoted to front page” check box. We can also set whether an Event is<br />

sticky at the top of lists (meaning that, in a list of various content types on a page, the Event content would<br />

always be at the top of the list), and whether we want to automatically create a new version of a content item<br />

created as an Event when the author makes an update (typically a good idea, but it depends on whether<br />

you want the ability to see the changes made to an individual piece of content over time, and the ability to<br />

republish a previous version in the case where the current version is incorrect). For our Event content type,<br />

we’ll check the “Create new revision” check box.<br />

The next set of options is for display settings. Click the “Display settings” tab in the left column to reveal<br />

the option that is available with this configuration parameter (see Figure 5-5). You can set whether <strong>Drupal</strong><br />

should display the name of the author who created the Event content item and the date that the item was<br />

authored. Let’s say in our case we don’t feel that having the author and date published is relevant, so we’ll<br />

uncheck that box. You may, depending on the type of content being authored, decide that it is important to<br />

display the author’s name and the date that the content was published. If so, leave the box checked.<br />

Figure 5-5. Display settings<br />

The final set of parameters defines the menu options that are presented to the author. Click the “Menu<br />

settings” tab to reveal the menu parameters (see Figure 5-6). The “Available menus” section lists the menus<br />

on which this content item may optionally appear. During content creation using this content type, the<br />

author will have the ability to specify whether the content item being created will appear as an item in<br />

the selected menu. In the example shown in Figure 5-6, the only menu that will appear as available to the<br />

51

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

Saved successfully!

Ooh no, something went wrong!