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:
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.
The panel is displaying “The files query does not seem to be correct”.
If I’m changing the return value in the page model to $this->images(), the same message is displayed in the panel regardless.
It’s actually in the blueprints folder. I just wrote it wrong in the post. -_-
I used “ProjectPage” as class name in the page model. It should be “AlbumPage” instead. I simply copied the example in the guide and didn’t thought about the class name. Next time I have to read the documentation more carefully.
Thanks for the help again. I really appreciate the support here.