In order to have a collection of pages for legal purposes (Privacy Policy, Imprint etc.) I created a page that is unlisted legal and listed subpages privacy-policyimprint.
This way I’m able to create a dynamic menu for the footer. I followed the cookbook for submenus, this works all great.
Besides the fact that if I click on one of the links e.g. privacy-policy now - I get the 404 page with the privacy policy loaded below.
It doesn’t seem to be related to the unlisted parent page.
Thanks for the reply. Almost there but still not working. This way I get all subpages of the current page in $items but I always need the children of legal:
I actually added that, to avoid loading the legal page object on the legal page itself. Leaving it out before had the same results, I get the 404 Page with the subpage below it:
I also disabled my routes and barbar.js (ajax page loader) the behaviour consists. I just tried adding another subpage for another section, looks like I get the same results for all subpages, indipendent from the footer menu. It’s like the $page objetct gets returned twice.
It does not happen for the blog itself, I can open each article (which are at the end subpages) normally.
I have to digg why this is happening and where I hve the issue in my templates.
As I copied that blindly earlier when there was an issue with the home setting in an early version of Kirby 3 I don’t have a clue what it is actually doing. The blog works if it is enabled, but the rest not.
Ok, but these routes look ok and should work without throwing errors on other pages. All the route does is make blog children work without the blog path in it.
But these shouldn’t be affected by the route at all because the patterns don’t apply. The current patterns only listen to something like about, legal, blog etc. or blog/something.
Maybe subpages don’t work at all in your installation? Do they work if you remove the routes?