âšī¸Pagination
The Pagination Include
This include was designed to keep SiteBuilder layouts tidy by abstracting common pagination logic out of layouts.
It can be used to determine where in the layout the pagination layout should be displayed. Just move the tag to where you need it.
The include is an alternative to the documented Siteglide feature How to Move Pagination; it just adds a few extra SiteBuilder features.
Important The include will only output pagination if the main Liquid tag has the parameters use_pagination: 'true'
and pagination_layout
set. Otherwise, it will do nothing.
Example
parameters
Parameter | Type | Required | Notes |
---|---|---|---|
| Boolean 'true' or 'false' | optional | This is to be used alongside the live_updates feature. Setting to true will add data-attributes needed to wrap the layout in elements which have both the data-sg-live-update-controls and data-sg-live-update-component attributes. It will also include a hidden field to set |
| Boolean 'true' or 'false' | optional, default is 'true' | This is to be used alongside the live_updates feature and the |
Versions
V1 - original release
The original logic inside the function is as follows. You can use this to make a copy and modify if you wish in your own layouts.
Last updated