Skip to content

Kirby 6.0.0

$page->isNth()

Checks if the item is at a certain position

$page->isNth(int $n, Pages|null $collection = null): bool

Parameters

Name Type Default
$nrequired int no default value
$collection Kirby\Cms\Pagesornull null

Return type

bool

Parent class

Kirby\Cms\Page