$pages->findOpen()

Finds the open $page object in the collection

  • return ($page)

Example

<?php echo $page->children()->findOpen()->title() ?>