I’m having similar problems while trying to fetch images from the whole site or from another page in custom blocks. And i can’t get it to work. Does query: model.images
need a page/site model?
I have a bunch of logos i uploaded to a page called /images/logos/ all with the template “logo”, cause i saw a similar suggestion by @texnixe somewhere here in the forum (i think here). Now i want to access these files in several custom blocks i use all over the site in pages, so that i don’t have to upload them to each page-folder and create redundance.
i tried
name: "007 Logos"
tabs:
main:
fields:
text:
type: textarea
size: small
logos:
type: files
query: site.find('logos')
template: logo
multiple: true
uploads:
template: logo
also tried a couple of these:
#parent: site.find('logos')
#query: site.images.template("logo")
#query: site.index(true).find('logos').images
#query: model.images
all not resulting in what i need. Any ideas?
Oh, i’m using kirby 4.2.0