$pages->paginate()
Add pagination and return a sliced set of data.
Parameters
Name | Type | Default |
---|---|---|
... $arguments | mixed |
null |
Return type
This method does not modify the existing $pages
object but returns a new object with the changes applied. Learn more →
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