Can not figure out how to correctly set query path to get structure field items in to blueprint as tags options.
So template regions.yml which has structure field looks like this:
Created page which is based on this template and structure field data filled:
/content/1_architecture/1_regions/regions.en.txt
columns:
- width: 1
fields:
regions:
label: Regions
type: structure
fields:
region:
label: Region name
type: text
So have other template streets.yml in which need to add tags options from Regions page:
columns:
- width: 1
fields:
regions:
label: Regions
type: tags
options: query
accept: options
query:
fetch: site.index.template("regions").toStructure
text: "{{ structureItem.region }}"
value: "{{ structureItem.region }}"
I can query to necessary page “Regions” … but how to select necessary structure field?
Any advice will be much appreciated!