Skip to content

Kirby 3.8.4

$files->paginate()

Add pagination and return a sliced set of data.

$files->paginate(mixed $arguments = null): Kirby\Cms\Collection

Parameters

Name Type Default
$arguments mixed null

Return type

Kirby\Cms\Collection

Parent class

Kirby\Cms\Files inherited from Kirby\Cms\Collection

Example

$files      = $page->files()->paginate(10);
$pagination = $files->pagination();

Check out the docs for the $pagination object