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-3. Article Type added to the Article content type<br />

Another change that we’ll want to make to the Article content type is to turn off the option to<br />

automatically post new articles to the front page of the site. We want to control what is displayed through<br />

the view that we’ll create in the next steps. To turn off the automatic publishing to the front page feature,<br />

click the Edit tab at the top of the “Edit Article content type” page and select “Publishing options” from the<br />

vertical tabs at the bottom of the form. Uncheck the “Promoted to front page” option and click the “Save<br />

content type” button. We’re now ready to use the Article content type to author content.<br />

Creating the Client Portfolio Content Type<br />

We will create a Client Portfolio content type to capture and display information about client projects. The<br />

following fields are associated with this content type:<br />

214<br />

• Project Title: The name of the project<br />

• Client: The name of the client<br />

• Types of Services: An entity reference to the types of services performed on this<br />

project. The values represented by this field will come from the articles that were<br />

written with a taxonomy term of Service Offering selected as the Article Type.<br />

• Key Staff: A reference to the key staff members who participated on this project<br />

(entity reference to a user entity)<br />

• Description: A description of the project (using the Body field as the basis of the<br />

description, changing the label to Description from the default value of body)

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

Saved successfully!

Ooh no, something went wrong!