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

Adding an open house attachment display to the property listings view


As Lynn sat down at her home desk to work on her attachment homework, Jackson took up his usual position next to her monitor. Lynn gave him a scratch and said, "Okay Jackson, ready to attack adding an attachment to our selectable property listing view?" Lynn logged into the development site and navigated to the Available Property Listing view edit screen.

Once there, she clicked on the Add button in the display area and selected Attachment from the pull-down that appeared. What she saw after adding the attachment display was this:

Available Property Listing edit screen with attachment display

Scanning the options that appeared from the master display that was hidden, Lynn noticed there was a contextual filter. "That's not supposed to be there Jackson. I must have forgotten to select the Apply to this display option when I added it to the neighborhood display. I see why Jim suggests using several separate views instead of...