$page->isDescendantOf()
Checks if the page is a descendant of the given page
$page->isDescendantOf(\Kirby\Cms\Page|string $parent): boolParameters
| Name | Type | Default | 
|---|---|---|
| $parent * | Kirby\Cms\Page|string | – | 
Return type
bool
Parent class
Example
<?php if($page->isDescendantOf('some-page')): ?>
This page is a descendant of the given page.
<?php endif ?>