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

Improving FAQs

In Chapter 7, Advanced Content, you created a page view that represented the list of FAQs as simple clickable questions like this:

Improving FAQs

Now, we are now going to extend Drupal so that we can represent the FAQs page using the commonly used accordions pattern as shown here:

Improving FAQs

We are first going to download and install a contributed module called views_accordion, and then we'll edit the exiting FAQs view to use the new Views Display plugin that the module provides.

Downloading the Views Accordion module

Modules can be downloaded from the Drupal website (http://www.drupal.org). The Views Accordion project page can be found at:

Installing the module through the UI

We covered the idea of evaluating modules on drupal.org back in Chapter 3, Basic Concepts, and at the time of writing the Views Accordion module for Drupal did not have a stable release (currently 8.x-1.0-alpha1). However, we know it works well enough for our purposes here.

Copy the URL of the link to either of the archives:

Installing the module through the UI

Visit...

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 ₹800/month. Cancel anytime