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 8 ■ <strong>Drupal</strong> Blocks<br />

appear at the top of the list. After making the changes to the blocks, scroll to the bottom of the page and click<br />

“Save blocks,” which commits the changes to the <strong>Drupal</strong> database. Revisit the homepage of your website,<br />

and you will see the changes that you just made.<br />

Configuring Blocks<br />

You can select various configuration settings for blocks on the “Configure block” page. The configuration<br />

options include overriding the title of the block and setting the visibility of the block based on several<br />

optional parameters. As an example of how you might use these features in the future, let’s change the<br />

“Who’s new” block so that it only appears on the homepage of your site, and only when the visitor is a user<br />

who has logged into the system with a user ID and password. To make these changes, navigate to the “Block<br />

layout” page and locate the “Who’s new” block. If you haven’t assigned that block to a region, do so now by<br />

following the steps in the previous section. Next, click the block’s Configure link. This reveals the block’s<br />

configuration page. See Figure 8-3.<br />

Figure 8-3. The configuration page for the “Who’s online” block<br />

94

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

Saved successfully!

Ooh no, something went wrong!