I am trying to figure out what I might be doing wrong. I have a side menu with children pages as links. When I click on a child link the side menu disappears from the page but the contents displayed on the page.
If you are on a child page, there are no children anymore, do nothing will be displayed. When calling the snippet, you have to pass the correct collection of pages as parameter.
I am still learning Kirby, so I should use pages? I am not fully understanding, it’s not you you are very knowledgeable with using Kirby. I tried using pages it showed all the pages, but when I click on a link the side menu did not disappears, getting close.
<?php foreach ($pages->children() as $sidemenu): ?>
@tenixe Thank you so much for your help and patient. And thank you for the link for object url. If you have any recommendation for me to better understand Kirby please share.