Skip to content

Kirby 3.9.8

$pagination->isFirstPage()

Checks if the current page is the first page

$pagination->isFirstPage(): bool

Return type

bool

Parent class

Kirby\Cms\Pagination inherited from Kirby\Toolkit\Pagination

Example

$subpages   = $page->children()->paginate(10);
$pagination = $subpages->pagination();

if($pagination->isFirstPage()) {
  echo 'This is the first page';
}