$pagination->lastPage() Returns the last page kirby/src/Toolkit/Pagination.php#L217 $pagination->lastPage(): int Return type int Parent class Kirby\Cms\Pagination inherited from Kirby\Toolkit\Pagination Example $subpages = $page->children()->paginate(10); $pagination = $subpages->pagination(); echo $pagination->lastPage();