$page->isChildOf($parent)
Checks if the page is a child of the given page
-
$parent (Page | string)
A page URI or page object. -
return (boolean)
Example
<?php if($page->isChildOf('some-parent-page')): ?>
This page is a child of it's parent!
<?php endif ?>