What I am trying to figure out is whether there is a good way to enable a blueprint / backend form on various pages based on a condition. This is similar to how ACF in WordPress has the line "Show this field group if … "
I know I can make a form for just a specific page by matching the .yaml
file to a template .twig
file of the same name. However, I’m looking for more fine grain control, and I don’t want to have make the same form 10 times for 10 different pages just to prevent it showing up on say my home page. So what I’m hoping is possible is these two things:
1) Display a form in the admin of just a list of specific pages
- Right now I’m creating fields in blueprints/default.yaml as I want these fields on most pages, but they should NOT be showing up on certain pages which they do right now since dafault.yaml seems to apply to all pages, even if you’re using a different template.
2) Display the form if the parent page is XYX
- This would be a bonus if it were possible, but definitely would be helpful.
Any tips or help on this would be appreciated…