Dearest Kirby-Community,
I have created a one-page page with Kirby. Each visible Page is displayed as a section of the One-Page. In the last section I want to display “our” Team.
I thought that the most dynamic way would be, to create a subpage to the page “team”, for each member. That way each member could be edited easily from the backend and for each new member you’d have to create a subpage, fill out the fields and set visible - et voilá the new member should be displayed on the frontend.
Sadly, this does not work the way I want to.
Somehow the visible Subpages do not appear.
After reading the Doc I tried the following:
<h2>Team< /h2>
<ul>
<?php foreach($page->children() as $subpage): ?>
<li>
<a href="<?php echo $subpage->url() ?>">
<?php echo html($subpage->title()) ?>
</a>
</li>
<?php endforeach ?>
</ul>
(spaces on purpose for posting here)
Later on I will then fetch the Information set on each subpage.
But not even displaying the Titles works out for me.
Do you have an idea on how to make this work?
I appreciate every thought that could push me in the right direction.
Thank you all very much.
Best Regards.