Hello,
Returning to Kirby after a few years away, and there’s been quite a few changes, not least to the panel! I’m trying to create a field blueprint that allows me to add the following YAML to my document:
Routes:
- routes/london-to-chatham-and-dover
- routes/london-to-woolwich-gravesend-strood-and-rochester
However, using the structured field type, I can’t get such output. The closest I can get is an array which includes key/value pairs, i.e.:
Routes:
-
name: routes/london-to-chatham-and-dover
-
name: routes/london-to-woolwich-gravesend-strood-and-rochester
Below is the relevant section of my blueprint. Note also that I’m having trouble getting this to output the full UID of a page, so having to add the path manually, at this point.
fields:
route:
label: Route
type: structure
style: table
fields:
name:
label: Name
type: select
options: query
query:
fetch: pages
template: route
value: 'routes/{{uid}}'
So, in short, using the structured field type, how can I create a simple array of page URIs (which I use in my template to create a list of related pages).
Thanks,
Paul