i loved Kirby 2 for being so easy to handle with a nice documentation but i have many problems with Kirby 3
How is it possible to change the blueprint in the panel under options for each page?
Example: for quick testing i created a cases page in the panel wie the template/blueprint “Simple Page” which has the .yml “default”. Later i created “cases.yml” which contains my custom blueprint code for my cases page. But when i try to change the template/blueprint for the cases page from default.yml to cases.yml in the panel, it won’t let me. The option is just disabled and i can’t activate it. Does someone know a solution?
This is controlled via the blueprint options:
https://getkirby.com/docs/reference/panel/blueprints/page#options, in this case the
If it is set to false, you can’t change the template.
Do you mean the changeTemplate option? Because there is no changeBlueprint option
I couldn’t change the blueprints neither in the starterkit-master nor in the plainkit-master. I’ve read the documentation before and it says, that changing blueprints is always on true except it is set to false. I did not set anything to false manually!
“or list of allowed template” maybe i have to allow something explicit?
I have a cases.yml, cases.php (template) and a cases.php (snippet, because i build a one pager). What more do i need to allow to change blueprints via the panel?
Thanks so far!
Oh, sorry, I meant
changeTemplate, of course.
I’ll check and get back to you.
As far as I can see, you can’t change the template by default. I tested with the
about.yml in the Starterkit and adding:
allowed me to change the template to
home. Note that the accepted values are
false or a list of allowed templates, there is no
Okay, so i have to explicitly allow templates in the .yml, if i want to change them for the respective pages. In my opinion quite a bit laborious but i’m glad, that i now know how it works thanks! Maybe for a future update it is a better option to give it a true statement? I think kirby 2 had a true statement?
I don’t really remember, but I think changing templates can result in data loss, so the developer should really take care of only allowing templates that are compatible. That’s probably why a true option doesn’t exist.