What does “is not working” mean? Do you get an error? No output?
We are talking about these pages with this field, right (and why do you say page, when you are fetching it from $site)
locations:
label: Location
type: multiselect
options: query
max: 1
query:
fetch: site.locations.toStructure
text: "{{structureItem.location}}"
value: "{{structureItem.abbreviation}}"
So in your loop, $loc
should be something like BO
for Bologna?
What do you get if you dump $item
?
Feel free to send me a link to the project or something to download if it is to complicated to sort out with words…