Mastering Drupal 8 Views

Accelerate your development process using Drupal 8 Views with this advanced, practical guide
Preview in Mapt
Code Files

Mastering Drupal 8 Views

Gregg Marshall

2 customer reviews
Accelerate your development process using Drupal 8 Views with this advanced, practical guide
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $35.99
Save 72%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Mastering Drupal 8 Views Book Cover
Mastering Drupal 8 Views
$ 35.99
$ 10.00
Mastering Machine Learning Algorithms Book Cover
Mastering Machine Learning Algorithms
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $51.98
Add to Cart

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 2 reviews

Read More Reviews

Recommended for You

Drupal 8: Enterprise Web Development Book Cover
Drupal 8: Enterprise Web Development
$ 69.99
$ 10.00
Drupal 8 Development Cookbook Book Cover
Drupal 8 Development Cookbook
$ 39.99
$ 10.00
Learning Drupal 8 Book Cover
Learning Drupal 8
$ 35.99
$ 10.00
Drupal 8 Configuration Management Book Cover
Drupal 8 Configuration Management
$ 23.99
$ 10.00
Python: Journey from Novice to Expert Book Cover
Python: Journey from Novice to Expert
$ 69.99
$ 10.00
HTML5 and CSS3: Building Responsive Websites Book Cover
HTML5 and CSS3: Building Responsive Websites
$ 67.99
$ 10.00