Skip to content

Kirby 4.5.0

$site->hasUnlistedChildren()

Checks if the page has any unlisted children

$site->hasUnlistedChildren(): bool

Return type

bool

Parent class

Kirby\Cms\Site

Example

<?php if($site->hasUnlistedChildren()): ?>
There are unlisted (published, but not listed) children in /content.
<?php endif ?>