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 10 ■ Creating Pages<br />

Figure 10-1. Regions provided by the Bartik theme<br />

Bartik provides 17 regions where we can place content and blocks, including the Header region that is<br />

typically used to display a site’s logo, a search box, and navigational elements such as the main menu. Bartik<br />

is only one of several hundred themes that are available on <strong>Drupal</strong>.org, each with its own arrangement<br />

and number of regions. Alternatively, you can use one of the starter themes, such as Zen, and design the<br />

exact layout of regions that you need to achieve the look that you desire for your site. For the purposes of<br />

demonstrating page building in <strong>Drupal</strong> 8, we’ll stick with the flexibility offered in the Bartik theme’s regions<br />

and layout.<br />

The first page that we will create is an example of a content detail page, meaning a single piece of<br />

content is displayed on a page with various associated blocks that augment the page beyond just the single<br />

piece of content. To demonstrate creating a content detail page, we’ll use the Article content type and create<br />

an article that describes the upcoming <strong>Drupal</strong>Con. After logging on, navigate to Manage ➤ Content. On the<br />

Content page, click the “Add content” button and select Article. Enter the title of the article and body text,<br />

and click the “Save and publish” button. Take note of the URL associated with your article, because you are<br />

going to use it to place blocks that appear only on this article’s page.<br />

118

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

Saved successfully!

Ooh no, something went wrong!