paginate
Splits a list into pages.
Works on paginated lists (collection.products, blog.articles, search.results, collections, customer.orders). Page size 1 to 250; the page comes from ?page=. Inside, paginate has the page links; pass it to default_pagination for ready-made links.
Syntax
Section titled “Syntax”{% paginate collection.products by 24 %}…{% endpaginate %}Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
list (required) |
array | A paginated list. |
by (required) |
number | Items per page (1 to 250). |
Related
Section titled “Related”Compatibility
Section titled “Compatibility”Since theme platform 1.0.
Was this page helpful?

