Hey KirbyFam,
I have this piece of code that creates inline anchor links to different parts in the page. But I only want to show this when there is more then one child, otherwise there’s just one anchor link, linking to the piece that’s right under it, kind of stupid… Does anyone have any idea how and if that’s possible?
Here’s the code & thanks in advance!
<div class="bottom-margin-full">
<?php foreach($page->children()->listed() as $behandeling): ?>
<a href="#<?= $behandeling->slug() ?>" class="submenu-behandelingen"><?= $behandeling->title() ?></a>
<?php endforeach ?>
</div>