Hiya,
I would like to add subdirectories (for categories) to the Starterkit. So, something like /photography/my-first-year/. And first year should then contain other galleries (or maybe even a page without galleries, but that might be something for another question).
Thanks in advance for your help,
Stephan
Not sure I quite understand what information you are missing. Currently, the photography has a pages section that creates albums as children. So you would have to adapt that to create categories instead. Then in your category page blueprint, have a section to create albums.
The question is if those categories should really be subpages. Otherwise, better to do filtering by routes to achieve the required url structure (instead of url params): Filtering via routes | Kirby CMS
Hiya,
Thanks for the feedback!
At the time being, if I want to add a page (let’s say based on default.php) within /photography, I cannot do that.
It would be great if I could in the panel add a subsection (or category or directory), where I could collect pages and albums to a specific topic.
I don’t know how to tackle that.
All the best,
Stephan
Right, as I said, if you want to create pages, you need a pages section: Pages section | Kirby CMS
In that pages section, you define what templates your subpage can use.
For your usecase, you would have to change the structure, though, not just add a template to the existing section. Because what you want as structure is:
content/
photograhy/
category/
category.txt
album/
album.txt
So in your photography blueprint, you would remove the existing pages section and replace it with one that accepts pages of type category. And in the category.yml, you would then create a pages section that accepts pages of type album.
Please read the docs about blueprints if you are not familiar with that yet:
Thanks for all the info provided - very much appreciated!
I have a look at my data structure and will follow the advice given.
Thanks again,
Stephan