Continuing the discussion from File changeTemplate not working:
I was adding multiple files sections to all of my templates using the section extend idea explained here Reusing & extending blueprints | Kirby CMS
And I was curious if I could extend multiple sections at once instead of altering all of the extends on all blueprints.
Here’s what I have been doing and it saves a lot of time but this code is in more than 30-40 blueprints:
sections:
images:
extends: sections/files.images
pdfs:
extends: sections/files.pdfs
files:
extends: sections/files.files
I know you can do this with fields blueprints by using the type: group
as shown above in that link, but was curious if you could do the same with section blueprints. I don’t think you can.
When trying to force a file template for uploads into each section, do you have to declare the template used next to the extend like this:
sections:
pdfs:
template: pdf
extends: sections/files.pdfs
I ask because i’m trying to enforce the file blueprint in the extended section blueprint already but it doesn’t apply the template properly.