paginate
A set of paging information that can be used for paged navigation and paged data presentation.
Properties
The pagination parts.
Pagination parts are used to build pagination navigation.
Paginated data list.
The total number of items on pages previous to the current page.
For example, if you show 5 items per page and are on page 3, then the value of paginate.current_offset is 10.
The page number of the current page.
The total number of items to be paginated.
For example, if you paginate a collection of 120 products, then the value of paginate.items is 120.
The URL parameter denoting the pagination.
The default value is page.
The number of items displayed per page.
The total number of pages.
The pagination part to go to the previous page.
The pagination part to go to the next page.
Example
Create product navigation
Get a set of products in the store via get_product_pagination filter with the return value paginate object.
{{#var paginate = all_products | get_product_pagination(5) /}}
{{#for product in paginate.list}}
{{#link_to product.url}}
{{product.title}}
{{/link_to}}
{{/for}}