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 a calendar of open houses


The night before meeting Jim at Starbucks, Lynn decided to do one more view using an add-on module. She had seen sites with a nicely formatted calendar of events and wondered if she could do the same for her open houses. Going to https://www.drupal.org/project/project_module, she selected Core compatibility as 8.x, Module category as Views, entered calendar into the Search Modules field, and clicked on Search. The first result was the Calendar module, which sounded exactly like what she wanted.

Installing the Calendar and Views Templates modules

She clicked on the title link, which took her to https://www.drupal.org/project/calendar. Reading the project page, she noticed that the Drupal 8 port is not feature-complete because of a difference in the way Drupal 8 date fields and the Drupal 7 contributed module Date handled dates. She didn't think that the issue mentioned was important to what she wanted to do for a calendar display, so she installed that module...