Hello:)
I have a select field populated via query to a structure field in another page, like this:
venue:
type: select
options: query
query:
fetch: site.find('about').venues.toStructure
text: "{{ structureItem.name }}"
value: "{{ structureItem.name }}"
translate: false
Here the full structure field:
venues:
type: structure
fields:
name:
type: text
address:
type: writer
nodes: false
marks: false
phone:
type: tel
openingtimes:
label: Opening Times
type: writer
image:
type: files
multiple: false
hide:
label: Hide venue from frontend
type: toggle
text:
- "no"
- "yes"
First of all, the reference here tells us to use {{ item. }} which does not work for me, instead of {{ structureItem. }} which works for me.
Second, while the select works, when using an apostrophe in the original structure field item, I get an html entity visible on the select field, as such:
The copy pasted text is: L’absolució
In the content file:
name: "L'absolució"
address: ""
phone: ""
openingtimes: ""
image: [ ]
hide: 'false'
This is Kirby 3.7.2.1
What may be wrong?
Thanks