$page->isDescendantOfActive()

Checks if the page is a descendant of the currently active page

  • return (boolean)

Example

<?php if($page->isDescendantOfActive()): ?>
This page is a descendant of the currently active page.
<?php endif ?>

Is something missing or incorrect? Edit this page on Github…