I would like some of my posts to contain an extra field, called subhead. Ideally, this would be presented through Admin in Add Page. I can see where the field ought to go in /system/blueprints/pages/default.yaml but I am not sure how to modify that in my own theme, which is a child theme of Antimatter.
I can see how to add a completely new tab, or add the field I want to the Blog Item tab using a blueprint.yaml file, but it would be a lot neater if I could add the field to the Content tab.
Is there an example of extending the default.yaml within a child theme? Or do I create a new default.yaml, and if so, where?
Sorry, I’m back. I managed to get exactly what I wanted only by adding the extra field in the default.yaml. But that’s no good in the event of updates.
I copied the default.yaml into mytheme/blueprints but it didn’t seem to work there.
For neatness, I wanted the extra field to be in the existing Content tab, but I just don’t seem to be able to get that. I’ll try a completely new tab next.
I just copied the default.yaml into my new blueprint, and just grabbed what I wanted and removed the rest. Then I had full control of the content tab etc.
I made .yaml that matched the name of the new template I’d created. So for example if you have a blog.html.twig in your templates folder, then you create a blog.yaml file in the blueprints. I’m not sure how you would go about overriding the default.yaml/default.html.twig, I’d recommend just creating a new template entirely.