$pagination->pages()
Returns the total number of pages
$pagination->pages(): int
Return type
int
Parent class
Kirby\Cms\Pagination
inherited from Kirby\Toolkit\Pagination
<?php
$subpages = $page->children()->paginate(10);
$pagination = $subpages->pagination();
echo 'There are ' . $pagination->pages() . ' pages';
?>