Can't use `related.type: pages` with a query in the right panel column (Kirby 3.4.4 RC 1)

Hi,

I’m working with Kirby 3.4.4 RC 1 and have setup a panel with tabs and columns without a present: page

Somewhere in the left column I placed a field types pages to select some pages and in the right column a general type: pages and type: files

It looks like this and basically what I expect.

title: Simple Page

# Each page can have an icon that is shown in page listings when no preview image is available.
icon: 📝

# Page presets are a quick way to set up a standard page layout
# More about page presets:
# - https://getkirby.com/docs/guide/blueprints/presets and
# - https://getkirby.com/docs/reference/panel/presets/page
#preset: page


# Custom descriptions of page statuses depending on use case
# More about page statuses: https://getkirby.com/docs/reference/panel/blueprints/page#statuses
status:
  draft: true
  unlisted:
    label: Hidden Page
    text: The page is not listed in the main menu
  listed:
    label: Menu Page
    text: The page is listed in the main menu

tabs:
  content:
    label: Content
    columns:
      main:
        width: 2/3
        sections:
          content:
            type: fields
            fields:
              subtitle:
                label: Untertitel
                type: text
              header:
                label: Headerbild
                type: files

              # https://github.com/getkirby/editor/wiki/Blueprint-setup
              text:
                type: textarea
                type: editor
                size: huge
              downloads:
                label: Downloads
                type: files
                template: files
                info: "{{ file.niceSize() }}"
                # important, to add meta data!
                uploads:
                  template: files

              related:
                label: Related articles
                type: pages
                query: page.siblings(false)

     right:
        width: 1/3
        sections:
          pages:
            label: Pages
            type: pages
          files:
            label: Pages
            type: files

  # meta tab
  meta:
    label: Meta
    sections:
      meta:
        type: fields
        fields:
          meta: fields/meta

Now I want to move my related articles into the right column like this (just showing the sections)

      right:
        width: 1/3
        sections:

          related:
            label: Related articles
            type: pages
            query: page.siblings(false)
            #query: page.index.filterBy('template', 'in', ['default'])
            #layout: cards

          pages:
            label: Pages
            type: pages
          files:
            label: Pages
            type: files

and related articles become the same kind of field like pages below

What’s causing that? Am I not free to place whatever field is available in any columns?

Even if I delete the two pages.type: pages and files.type: files fields, “Related articles” is just a listing of the child pages and not a selection of my related articles.

The problem is that you want a field but declare it as section. To place fields next to sections, you have to put it into a fields section:

  right:
        width: 1/3
        sections:
          fields:
            fields:
              related:
                label: Related articles
                type: pages
                query: page.siblings(false)
                #query: page.index.filterBy('template', 'in', ['default'])
                #layout: cards

          pages:
            label: Pages
            type: pages
          files:
            label: Pages
            type: files

Note: Since I called the section fields, it’s not necessary to give it a type, if it was called differently, you would have to add the type, like in your content section in the main column.

Thank you so much.
I still get lost in all the yaml keys :slight_smile: