Book Image

Mastering Drupal 8 Views

By : Gregg Marshall
Book Image

Mastering Drupal 8 Views

By: Gregg Marshall

Overview of this book

Learn how to build complex displays of content—all without programming. Views were used on more than 80% of all Drupal 7 sites; now they are part of the Drupal 8 core. While most site builders and site owners are aware of views, they don't understand how to take full advantage of their power to create many amazing pages and blocks. If they use views, they might build 10 different view displays with different filters, without knowing that a contextual filter would require only a single display. Using our sample company, we'll take its existing content and evolve an ever more complex and powerful website for that company, starting with adapting the administration the user sees and moving on to making complex pages of information for site visitors. While the book is written for Drupal 8, the similarities between Views in Drupal 7 and 8 make this a useful reference for Drupal 7 site builders also.
Table of Contents (20 chapters)
Mastering Drupal 8 Views
Credits
Foreword
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Preface
Index

Putting one View inside another


"It's still early, how about we try one more before calling it quits?" said Lynn. Jackson was too busy enjoying his stomach rub to pay attention to her. She gave him a pat and said, "Okay, for my last feat of amazing displays, let's see if we can use that module Jim suggested—the one that lets you embed one view in another as if it were a field. I think we can use that to do something really interesting like a property display that includes open houses within the property listing. What was the name of that module?" Looking at her notes, she remembered it was Views Field View. Navigating to http://drupal.org/project/views_field_view, she downloaded the module and installed it on her development site.

Lynn didn't see any documentation on the project page and no documentation page linked to the project page. So she downloaded the .zip version of the module and expanded it on her computer to look for a readme.txt file. Sure enough, there was one that contained...