Hi,
I am in the weeds a bit with this one, so if my whole approach is off please say! I am setting up a tags field, using values from a structure field elsewhere on the site. This is my structure:
artworkCategories:
type: structure
label: Artwork categories
help: These are the categories available for artworks to be placed in to. There is also the option to display some information about the category, to be displayed when the category filter is applied on the main Art & Artists page.
sortBy: category asc
columns:
category:
width: 1/3
categoryInfo:
width: 2/3
fields:
category:
type: text
label: Category
categoryInfo:
type: writer
label: Category information
help: Optional - add some information about the category, to be displayed when the filter is applied
nodes: false
marks:
- bold
- italic
- link
- email
- clear
toolbar:
inline: false
marks:
- bold
- italic
- '|'
- link
- email
- '|'
- clear
And this is how I have set up the tags field in the blueprint:
categories:
type: tags
label: Artwork categories
help: Select one or more categories for this artwork.
options:
type: query
query: site.find("art-artists").artworkCategories.toStructure
text: "{{ item.category }}"
value: "{{ item.category.slug }}"
Which is working great. Now I need to output the text value onto the page, rather than the stored value e.g. Contemporary artists
rather than contemporary-artists
.
I have tried the blueprint method, but that isn’t working, I assume because I am pulling the tag values from elsewhere. What would be my best approach for this?