Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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

Working with Views blocks


In the previous section, we created two entirely separate Views-powered pages to list all the News items and Blog posts, that is, those Article nodes that had been marked as News or Blog posts. As an illustration of the ease with which you can create separate blocks for content lists using the Views module, let's now create a block version of the news listing and place that block on the Basic page entitled News that you created in Chapter 5, Basic Content.

Creating blocks using Views

Locate the newly created Views-powered News page and hover your mouse pointer near the top of the view's output. This should reveal the contextual link for the view as a whole, allowing you to edit the view quickly and easily without even knowing its name.

Create a block version of the existing display by clicking on the +Add button and choosing to add a new Block Display.

Click on the new Display name: label entitled 'Block'

Rename the Block to News list as a Block as you did earlier:

Since...

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 $19.99/month. Cancel anytime