Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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 2. Installation FREE CHAPTER 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

Listing testimonials with a view


You are now going to create another view, and this time to list all your testimonials.

In the next section, you will also see just one example of the type of customizations that you effect on a view—in this case, how to group testimonials according to the Work area(s) that they relate to.

As you have already seen, the Views module is a very accessible tool for querying and presenting site content, and even the core version provides you with a range of options for providing both pre-filtered, pre-sorted, and user-filterable lists in a variety of formats.

Creating a grouped view

This view will list a number of testimonials nodes together under a heading of E-Commerce, another under Consultancy and then some more under Training as illustrated in the following screenshot:

This time around, we'll return to using a Page view again rather than a block because we don't have an existing Testimonials page into which to embed a block anyway.

Starting with a page view is also...

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
Banner background image