Mastering Drupal 8 Views

Accelerate your development process using Drupal 8 Views with this advanced, practical guide

Mastering Drupal 8 Views

Mastering
Gregg Marshall

4 customer reviews
Accelerate your development process using Drupal 8 Views with this advanced, practical guide
$35.99
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Code Files
Free Sample

Book Details

ISBN 139781785886966
Paperback272 pages

Book Description

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

Chapter 1: Up and Running with Views
Drupal 8 is here, should I upgrade?
Looking at the Views administration page
Views settings
Adapting an existing View
Debugging – Live Preview is your friend
Summary
Chapter 2: Views from Scratch
A first try at listing the available properties
The anatomy of a view
Showing the Watchdog logs
Summary
Chapter 3: Sorting and Filtering
Changing the sort order
Filtering results
Exposed filters – giving power to your visitors
Summary
Chapter 4: Contextual Filters
Contextual filters are filters in a different place
Using default values to "create" options
Summary
Chapter 5: Relationships
Fixing the neighborhood property listing title
What are relationships?
Adding realtor information to the property listings
Adding an open house attachment display to the property listings view
Other relationship considerations
Summary
Chapter 6: Add-on Modules
Adding a rotating carousel to the front page
Mapping content
Doing away with pagers – creating an infinite page
Expandable accordions hide and show content
Putting one View inside another
Adding a calendar of open houses
Summary
Chapter 7: Field Rewrites
Linking to anything
Changing how fields are output
If-then-else conditional rewrites
Summary
Chapter 8: Customizing Views
Display settings
Header, Footer, and No Results Behavior
Pager
Adding No Results and Footer to Available Property Listings
Summary
Chapter 9: Advanced View Settings
Becoming advanced
Changing the SQL queries generated by views
Making Views go fast
Summary
Chapter 10: Theming Views
Time to theme
Changing generated HTML and CSS from the Views UI
When the HTML code needs to change
Going live and accolades
Summary

What You Will Learn

  • Create displays of content that are automatically updated when you add new content 
  • Show maps and rotating image carousels on your site 
  • Combine content to create composite displays using the same data in different ways
  • Use fields from more than one content type to create powerful views of multi-table data
  • Modify the field data being displayed, combining it in different ways or changing the HTML that might be normally generated
  • Add headers and footers above and below a views display
  • Make the output of your view look exactly like the designer specifies
  • Change the order in which a list of content is displayed, limit the content shown to only certain content types or values
  • Filter content using values passed to the view in the URL, making a single view work different ways

Authors

Table of Contents

Chapter 1: Up and Running with Views
Drupal 8 is here, should I upgrade?
Looking at the Views administration page
Views settings
Adapting an existing View
Debugging – Live Preview is your friend
Summary
Chapter 2: Views from Scratch
A first try at listing the available properties
The anatomy of a view
Showing the Watchdog logs
Summary
Chapter 3: Sorting and Filtering
Changing the sort order
Filtering results
Exposed filters – giving power to your visitors
Summary
Chapter 4: Contextual Filters
Contextual filters are filters in a different place
Using default values to "create" options
Summary
Chapter 5: Relationships
Fixing the neighborhood property listing title
What are relationships?
Adding realtor information to the property listings
Adding an open house attachment display to the property listings view
Other relationship considerations
Summary
Chapter 6: Add-on Modules
Adding a rotating carousel to the front page
Mapping content
Doing away with pagers – creating an infinite page
Expandable accordions hide and show content
Putting one View inside another
Adding a calendar of open houses
Summary
Chapter 7: Field Rewrites
Linking to anything
Changing how fields are output
If-then-else conditional rewrites
Summary
Chapter 8: Customizing Views
Display settings
Header, Footer, and No Results Behavior
Pager
Adding No Results and Footer to Available Property Listings
Summary
Chapter 9: Advanced View Settings
Becoming advanced
Changing the SQL queries generated by views
Making Views go fast
Summary
Chapter 10: Theming Views
Time to theme
Changing generated HTML and CSS from the Views UI
When the HTML code needs to change
Going live and accolades
Summary

Book Details

ISBN 139781785886966
Paperback272 pages
Read More
From 4 reviews

Read More Reviews