working on a project where i pull all the related pages to help with navigation.
however i would like to exclude the current active page from the list.
what would be the best way to do this? currently toying with this function:
<?php foreach($pages->children()->not($activePage)->visible() as $subpage): ?> <?php echo $subpage->title(); ?> <?php endforeach ?>
Thankful for advice.