Skip to content

Kirby 4.4.1

$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() ?>