Parent images for textareas files

#1

We’ve got a page that should access images from its parent and we have issues setting up the reference for textareas inside structure fields. This is about the files and upload options of the textarea field.

This is our setup. We’d expect Kirby to show the parent page’s images when selecting images inside the textares field but it doesn’t:

  about:
    type: textarea
    label: Vorstellung
    size: small
    files: page.parent.images
    uploads: image

While this doesn’t work and displays an empty file select, the same query logic works for a files field on the same page:

  photo:
    type: files
    label: Foto
    query: page.parent.images
    max: 1

How should this be set up?

#2

Hm, uploading to the parent seems to work when using the query option. Sadly, that is not true for selecting

        fields:
          struc:
            type: structure
            fields:
              text:
                type: textarea
                files:
                  query: site.find("notes").images # does not work, tried different variations with page.parent etc.
                uploads:
                  parent: site.find("notes") # works and uploads to parent
                  template: textarea-upload