Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Drupal 8 Views

You're reading from   Mastering Drupal 8 Views Build sophisticated displays of your Drupal content, all without programming

Arrow left icon
Product type Paperback
Published in May 2016
Publisher
ISBN-13 9781785886966
Length 272 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Gregg Marshall Gregg Marshall
Author Profile Icon Gregg Marshall
Gregg Marshall
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Up and Running with Views FREE CHAPTER 2. Views from Scratch 3. Sorting and Filtering 4. Contextual Filters 5. Relationships 6. Add-on Modules 7. Field Rewrites 8. Customizing Views 9. Advanced View Settings 10. Theming Views A. Content Types for a Sample Site Index

Pager


"Okay, Jackson, let's look at the last setting in the second view edit column: pager. We'll be finished soon.

Pagers allow views to display a lot of data without creating a page that could be infinitely long. Drupal defaults to showing 10 items per page and using a full pager. I know from experience with my old site and building views so far that if I set the number of items per page to 0 when I create a new view, the pager will be disabled, and the view will display everything. For my test site with a few properties, this probably is fine, but if I were on the national multiple listing service with maybe a million properties, showing all them on the same page would take forever to display and be useless to navigate.

Available property listing with full pager

Replacing Drupal 7's mini pager

I also remember Jim saying that the default pager is a resource hog that will significantly slow down my site when the total possible number of items to display gets big as the pager first counts how...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image