Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Drupal 8

You're reading from   Learning Drupal 8 Create complex websites quickly and easily using the building blocks of Drupal 8, the most powerful version of Drupal yet

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher Packt
ISBN-13 9781782168751
Length 328 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Nick Abbott Nick Abbott
Author Profile Icon Nick Abbott
Nick Abbott
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Introduction FREE CHAPTER 2. Installation 3. Basic Concepts 4. Getting Started with the UI 5. Basic Content 6. Structure 7. Advanced Content 8. Configuration 9. Users and Access Control 10. Optional Features 11. Reports 12. Extending Drupal 13. Theming Drupal 14. Getting Support Index

Blocks


If you have a layout that contains sidebars, headers, or footers, you will most likely have content that is repeated between pages. If you edit this content in one place, you would expect it to be updated on every page.

This is where blocks come in.

In Drupal 8, there is another entity type called a block.

A block is a piece of content that can be placed in a specific region of a page, and you can set rules that determine when (on which actual pages) the block appears, depending on various conditions such as the page URL or the currently logged in user's role(s).

An example of a block is the Main menu.

A typical simple website page template will often have a header, footer, and perhaps, left and right sidebar regions as shown in the following diagram:

Within these page template regions, you can add repeating content such as the site logo, a menu, shopping cart, terms and conditions, or other items of content.

Because Drupal is a modular framework, modules can define a block that you can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime