I want to query all images of the page (page.images) and of its children (page.index.images). I can’t find a way to combine both queries into one.
This is to select a cover-image for the page in the panel.
I’ve tried it this way, but haven’t been successful:
fields: coverimage: type: files options: query query: page.index.prepend($page->id(), $page).images
I’m not sure if the approach and/or the syntax of the query is wrong.
Maybe someone knows a better way to query all images of a page and its children in one field.