Is there a way to programmatically add sections to a blueprint?

I am working on a website that functions as an archive and for the panel I would like to have multiple sections filtering the pages by year.
So one section for everything published in 2020, one for 2021 and so on. I don’t want to add them manually every year, so I wondered if there was a way to create them programmatically, maybe with a hook?

Another side question would be if it would make more sense to group the pages under a parent page that is the year. Right now I use a number field for the year in the page blueprint.

Support for dynamic blueprints is coming to Kirby 3.6. You can try the alpha version.

1 Like

There’s also PR for a cookbook recipe with more details for the new feature: Add programmable blueprints recipe by texnixe · Pull Request #1455 · getkirby/getkirby.com · GitHub

1 Like