Skip to content

Kirby 6.0.0

$page->isDescendantOfActive()

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

$page->isDescendantOfActive(): bool

Return type

bool

Parent class

Kirby\Cms\Page

Examples

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