When a file is added to the page (in this case variable.woff for example) in the files blueprint (fontloader.yml) you fill some fields in a structure. Below is one example from the fontloader blueprint.
fields:
style:
label: Font Style
type: structure
width: 2/3
fields:
stylename:
type: text
instance:
type: text
On the main page where the file is added I am editing the heading block site/blueprints/blocks/heading.yml I want to be able to create a select field that will dynamically query all the options from all the files that were uploaded to that page using the fontloader.yml template. Here’s the relevant part from that heading.yml
I can get the block to create a select for all the files with that template with the above code.
Where I’m stuck is when I try to get that select to let me choose specific fields from the fontloader.yml I’ve tried a few variations of code below.
But I can’t get it to work. So back to the question. Is it possible to dynamically access these fields? It’s more than just selecting a file, but selecting specific information attached to that file.