Is it possible to use a select field in the query of a files field?
To be more clear: Let’s say I have a site set up in which the user can create »Exhibition« pages and »Artist« pages. When creating an exhibition page, the user can select which artists should be featured in the exhibition, via a select field:
artistInExhibition: type: select label: Artists featured in the exhibition options: query query: site.find("artists").children.published
I would now like to use the selection the user makes in this field, to tell a files field from which page it should query images. Is this possible? Or in other words, can I use the selection as a variable in the same blueprint?:
imagesInExhibition: type: files query: site.find(artistInExhibition).images