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 No Results and Footer to Available Property Listings


"Okay, Jackson, let's apply what we've learned to the Available Property Listing views we've already built. So, we'll start with a no results message." Clicking on Add next to NO RESULTS BEHAVIOR, Lynn selected Text Area Global, her go-to display for headers, footers, and no results, and kept the default All Displays. Clicking on Apply (all displays), she entered her no results message, adding a sad face image she had uploaded earlier, and the message looked like this:

No results message for available property views

Clicking on Apply (all displays), Lynn said "This was straightforward, so let's add the standard disclaimer to these same views."

Clicking on Add next to FOOTER, Lynn selected Text Area Global, kept the default All Displays, and clicked on Apply (all displays); she then entered the disclaimer that her attorney insisted she display with property listings. The footer message setting looked similar to this:

The disclaimer footer...