Skip to content

Kirby 4.5.0

$pages->findOpen()

Finds the currently open page

$pages->findOpen(): Kirby\Cms\Page|null

Return type

Kirby\Cms\Page|null

Parent class

Kirby\Cms\Pages

Example

<?= $page->children()->findOpen()->title() ?>