I don’t fully understand how to setup subpages with blueprints and can’t find a deep explanation on how to organize pages and subpages in documentation.
I’ve checked:
- Documentation on pages: Could not find any reference to subpages other than the document: Subpage-builder
- The notes example in starterkit: starterkit/site/blueprints/sections/notes.yml at main · getkirby/starterkit · GitHub
- The events example in Events | Kirby CMS. Trying to replicate this, I get the error: " The section “events” could not be loaded: The parent for the query “site.find(“events”)” cannot be found in the section “events” in /panel where the section should be rendered. (I’ve already created a page named events that uses the events template).
My doubt:
In order to have an “events” page which holds a collection of pages of type “event” I understand I need to define two page blueprints:
- events.yml
- event.yml
How one tells kirby pages using the event.yml are subpages of the event page?
Does events.yml needs to define a section linked to the event.yml template?