in my config.php, the children of the catalog page break and I get a 404 if I try to visit them(edit). If I comment out the line in config.php the children work normally.
There is no such thing as the site template, only a site blueprint. Are you referring to the panel or the frontend? Please describe the issue in more detail, thanks!
My mistake, i mean the “default.php” template. I see now that they are error pages, I was confused because don’t have the title showing anywhere on the page.
Can you explain what you mean by “the children break”?
In theory, there is an infinity of ways that something (“the children”) may not match your expectations (“break”), so in order to understand your problem we need to know what the something is exactly and what your expectations were.
Some possibilities, from the top of my mind:
Do you mean that, in PHP templates, if you do page('project/catalog')->children() or ($page->children() when rendering the home page), you get an empty collection, despite that page actually having children?
Do you mean that in the Panel, you’re not seeing a list of child pages for that home page? (If so, what is the URL of that panel page where you’re not seeing children listed?)
Do you mean that when you attempt to visit any child page of project/catalog, maybe at an URL like /project/catalog/some-page, you get a 404?
If I set 'home' => 'photography/trees' in the config:
The / URL path shows the “Trees” album page.
The /photography/trees URL path redirects to / (showing the “Trees” album page).
The /photography/trees/landscape URL path shows the “Landscape” album page.
So if this is not working for you, chances are you have some faulty logic in a template, controller or custom route. Maybe try pinpointing what is interfering with normal routing by commenting out code systematically?
Edit: I tested with the PHP built-in server, using the composer start command, which is:
$ php -S localhost:8000 kirby/router.php
(If you’re using the PHP built-in server for testing, make sure you are using kirby/router.php as the entry point handling requests.)
Isn’t it very strange though? That the children show up as they should before I add the line in config? What’s more is that in the catalog page (the one set as home) the thumbnails of the children load as they should even when their pages are missing. Any ideas for workarounds or further troubleshooting?