$pages->paginate()
Add pagination and return a sliced set of data.
Parameters
Name | Type | Default |
---|---|---|
... $arguments | mixed |
null |
Return type
Parent class
Kirby\Cms\Pages
inherited from Kirby\Cms\Collection
Examples
$arguments
is an option array
First argument is the limit
Show 10 items per page:
First is the limit, second is the page
Show items 11-20:
First is the limit, second are options
Related
Check out the docs for the $pagination object