How to get values of another field (toStructure) by query?

I want to have tags in Project template (that is child of “Projects”).

So I added field “tags” in Projects, and in Project blueprint I added field:

    type: checkboxes
    options: query
    query:  page.parent.tags.toStructure

Can’t find out what is missing, as it prints blank values:


And in content file it saves only number:


Can you please guide me how this syntax works? I was learning by these examples but still can’t understand the whole picture.

1 Like

Ah, clear, here is what I needed: structureItem (thought should be tags there). Changed and now it works, thank you!

  fetch: page.parent.tags.toStructure
  text: "{{ structureItem.tag }}"
  value: "{{ structureItem.tag }}"