paginate
Information about the pagination inside a set of paginate tags.
Properties | Type | Description |
---|---|---|
current_offset | number | The total number of items on pages previous to the current page. |
current_page | number | The page number of the current page. |
items | number | 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. |
next | part | The pagination part is to go to the next page. |
pahe_size | number | The number of items displayed per page. |
pages | number | The total number of pages. |
parts | an array of part | The pagination parts. Pagination parts are used to build pagination navigation. |
{
"page_size": 8,
"current_page": 1,
"current_offset": 0,
"pages": 11,
"items": 85,
"next": {
"url": "/collections/all-products?preview_theme_id=&page=2",
"is_link": true
},
"parts": [
{
"is_link": false,
"title": "1",
"url": ""
},
{
"is_link": true,
"title": "2",
"url": "/collections/all-products?preview_theme_id=&page=2"
},
{
"is_link": true,
"title": "3",
"url": "/collections/all-products?preview_theme_id=&page=3"
},
{
"is_link": false,
"title": "...",
"url": ""
}
]
}
Updated over 1 year ago