Skip to content

Kirby 6.0.0

$pages->findOpen()

Finds the currently open page

$pages->findOpen(): Page|null

Return types

Kirby\Cms\Pageornull

Parent class

Kirby\Cms\Pages

Examples

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