Hi there, the multilanguage website i am working on works well apart from one thing: if my client wants to add a custom first level page to the 4 existing pages (about, projects, upcoming, contact) they get created/show up in the folder structure and their headline gets rendered in the main menu, but they dont show up as a new section in the page flow of the onepager. I am sure its some basic thing that i fail to see and i hope someone can point me.
In your home.php, you call the snippets for the different sections. But I don’t see one for the new listed page you created. In fact, this setup doesn’t really make sense for new sections created by a user, since they cannot create new snippets.
You could create a default snippet that is used if no snippet with a given name exists, though, an pass that snippet name as fallback to the snippet helper
1 Like
It took me a moment but i think i got it: I changed the section code in my home.php to
<?php foreach ($pages->listed() as $section) : ?>
<?php snippet([$section->uid(), 'default-snippet'], ['data' => $section]) ?>
<?php endforeach ?>
And that worked perfectly! – I am still new to Kirby cms and its hard sometimes to stay motivated without colleagues to ask when i am stuck so thanks a lot!