In a pages field I am trying to show the first image of the parent of the selected page, like this:
fields:
editions:
type: pages
query: site.find('works').index.template('edition')
text: "{{ page.title }} | {{ page.parent.title }}"
image:
query: page.parent.image
But, although {{ page.parent.title }}
works, page.parent.image
on the image query, does not… I still see the icon both in the modal and in the list.
I was following this example from the pages docs, image query section, which is almost identical:
image:
query: page.children.first.image
Shouldn’t this work? What am I doing wrong ?
Thanks