I have the following problem. I have a block with a selection “family”.
fields:
family:
type: select
pretty: true
options:
type: query
query: site.find("fonts").children
style:
type: select
pretty: true
options:
type: query
query: site.find("fonts").children.find("fontName").styles.toStructure
text: "{{ item.fontstyle }}"
The fonts have subpages for each individual font. I want the second selection to be dependent of what was selected in the first one. Basically I want to select my font, and then on the second selection only be shown a list of that selected fonts different styles.
Basically what I need is instead of children.find(“fontName”). I would need a value that is generated from the first selection.