Using files of parents page files sections

Hello, I was wondering if there is way to choose uploaded files from a parent page and use/select it in the files field of a child page in the panel? :slight_smile:

Yes, that is possible. You can use the queryoption in a files field to query any page, even including children, for example:

   fields:
      files:
        type: files
        query: site.find('photography').children.images.filterBy('template','test')

In your case, it should probably be:

   fields:
      files:
        type: files
        query: page.parent.images

Or files, or whatever, depending on what type of file you want to query.

2 Likes

Nice! This is what I was looking for. Thank you :slight_smile: