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

Fixing the neighborhood property listing title


Lynn sat down at her computer and noticed she was alone tonight. "I guess Jackson decided to hang out with the family, so I'll talk to myself."

From the Views list of views, Lynn selected her Available Property Listing view and clicked on Edit. She then clicked on Neighborhood Page to select the display she wanted to change.

Tip

Be careful when you are editing views that have multiple displays. More than once I've made unintended changes to the wrong display and clicked on Save before realizing my mistake. Then I had to change the display back to what it should be and make the changes to the right display. Another common mistake is to forget to use the override option and make changes to all displays when you really wanted to edit just a single display. Both mistakes are good reasons to use multiple views rather than having a single view with lots of displays.

Adding a relationship

Given Jim's hint that she needed a relationship, Lynn clicked on...