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
Mastering Drupal 8 Views

You're reading from   Mastering Drupal 8 Views Build sophisticated displays of your Drupal content, all without programming

Arrow left icon
Product type Paperback
Published in May 2016
Publisher
ISBN-13 9781785886966
Length 272 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Gregg Marshall Gregg Marshall
Author Profile Icon Gregg Marshall
Gregg Marshall
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Up and Running with Views FREE CHAPTER 2. Views from Scratch 3. Sorting and Filtering 4. Contextual Filters 5. Relationships 6. Add-on Modules 7. Field Rewrites 8. Customizing Views 9. Advanced View Settings 10. Theming Views A. Content Types for a Sample Site Index

Expandable accordions hide and show content


On Lynn's existing Drupal 6 site, Jim had put up a Frequently Asked Questions (FAQ) section, where Lynn had put in a lot of information about Blue Springs, the surrounding area, and activities that potential homeowners might be interested in.

As the list got longer, Jim enabled a feature in the FAQ module that turned the questions and answers into expandable questions. When a visitor first visited the page, all that showed were the questions. Once a visitor clicked on a question, the area between that question and the next one would expand and the answer was displayed.

Lynn had learned they were referred to as accordions. When looking for the carousel module, she noticed a module called Views Accordion and decided to try and see if she could create a more full-featured FAQ page. She navigated to https://drupal.org/project/views_accordion and installed the Drupal 8 version of the module.

Her existing FAQs consisted of questions and answers only. Lynn...

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