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

Summary


In this chapter, we completed our exploration of the Views edit screen by looking at the advanced settings. Contextual filters and relationships were covered in depth in the previous chapters. Many of the remaining settings are straightforward, and in some respects, the Advanced settings column is a sort of miscellaneous settings collection. However, a few are very powerful, such as Use AJAX, which will change the way your website renders content that is spread across several subpages. Others change the SQL queries being generated to combine the results, which is important if there is a lot of data to display, and this detail isn't relevant to site visitors.

In the next chapter, we'll finish our dive into Views by learning how to theme the output of the views you generate so that they look exactly like you or your designer had in mind. We'll start with some relatively easy adjustments to the CSS classes generated by views. Once we've exhausted our options from the user interface,...