Select Field with Option Queries : Possible to get grandchildren?

I have the following directory structure for content on my site:

/paintings/
/paintings/series/
/paintings/series/artwork/

There are multiple series in work, and each series has multiple artworks.

Is it possible to use the Select fieldtype with “Option queries” to get a list of ALL artworks across ALL series? It seems like you are only allowed to target a single directory.

https://getkirby.com/docs/cheatsheet/panel-fields/select

This should work:

select:
  label: Select me
  type: select
  options: query
  query:
    page: work
    fetch: grandchildren

Hmm. This works (to get all series):

  featured_series:
    label: Series
    type:  select
    options: query
    query: 
      page: paintings
      fetch: children
      value: '/{{uri}}'
      text: '{{title}}'

But this doesn’t:

  featured_paintings:
    label: Paintings
    type:  select
    options: query
    query: 
      page: paintings
      fetch: grandchildren
      value: '/{{uri}}'
      text: '{{title}}'

Strange, I tested this in a Starterkit before posting, because I wasn’t quite sure if the option existed, and it works for me (Kirby 2.2.3 master branch).

Ah! I had 2.2.1, it works like a charm after upgrading. Thanks for the quick help.

Do you know if there is a way to display the parent’s title as part of the text: value?

I don’t know about the title, but you could do this if it helps:

text: '{{title}} ({{parent}})'

Will only spit out the path, but maybe better than nothing. Or a bit more elaborate:

text: '{{title}} (Child of: {{parent}})'