Paginate
Information about the pages inside a set of paginate tags.
Properties
| Name | Type | Description |
|---|---|---|
current_page | number | Current page, starting at 1 |
current_offset | number | Number of items before the current page |
items | number | Total number of items in the list |
page_size | number | Number of items per page |
pages | number | Number of pages |
page_param | string | Query parameter that selects the page: page, or page[<id>] in the deprecated form |
previous | part | Link to the previous page, nil on the first page |
next | part | Link to the next page, nil on the last page |
parts | array of parts | Links for page navigation, with … for skipped pages |
A part has a title, a url and is_link. is_link is false for the current page and for ….
Deprecated form
The deprecated paginate form sets the paginate object and these variables:
| Name | Type | Description |
|---|---|---|
previous_page | string | URL of the previous page |
next_page | string | URL of the next page |
current | number | Current page |
total | number | Total items |
last | number | Last page |
has_more | boolean | Whether there are more pages |
items | array of products | Items of the current page |