Pages field doesnt show add button in panel. (no restriction on publishing status)

Hello,

I am having a weird issue where my pages field only has a select button and not an add button for creating new pages.

Here a screenshot of the Kirby panel:

Here the corresponding yml

title: Module

sections:
  content:
    type: fields
    fields:
      pages:
        label: Events
        type: pages
        layout: cards
        image:
          ratio: 3/2
          cover: true
        template: activity
        query: site.find('Events')
      testPagesFieldThatAlsoDoesntShowAddButton:
        label: Warum gehst du nicht
        type: pages
      elements:
        type: blocks
        max: 6
        fieldsets:
          - big-banner
          - call-to-action
          - event-preview
          - four-image-info
          - keyfactssection

I looked at other forum posts having a similar issue but for them the issue was either not being logged in with an admin account. (Checked it and my account has admin permissions)
Some issue with the cache. (Cleared it, issue persists)
Or the pages field only allows pages with the status “published” but that is not the case here.

On other panels on this site the pages field works fine and shows the add button.
Screenshot 2024-09-03 at 14.10.21
yml:

title: Default Page

columns:
  main:
    width: 2/3
    sections:
      fields:
        type: fields
        fields:
          text:
            type: textarea
            size: huge
  sidebar:
    width: 1/3
    sections:
      pages:
        type: pages
        template: default
      files:
        type: files

So I tried to add another pages field to my ‘modules’ yml that is like the one in the default yml to see whether it then has an add button, but it also only shows a select button.

Here for reference in case it helps the yml for the Activity page (the page type that I would like my users to be able to add to the events field):

title: Activity

columns:
  main:
    width: 2/3
    sections:
      fields:
        type: fields
        fields:
          cover:
            type: files
            multiple: false
            label: Cover image
          shortdescription:
            type: textarea
            label: Kurzbeschreibung
          description:
            type: textarea
            size: big
            label: Beschreibung
  secondary:
    width: 1/3
    sections:
      secondaryfields:
        type: fields
        fields:
          tags:
            label: Tags
            type: tags
            options:
              - Virtuell
              - Erlebniss
              - Outdoor
              - Indoor
          duration:
            label: Dauer
            type: text
          participantamount:
            label: Teilnehmer Menge Angaben
            type: text
          gallery:
            type: files
            multiple: true
            label: Gallerie
            layout: cards

I am stumped and dont know what else I could try…

So I appreciate any and all help :slight_smile:

A pages field does not have functionality for creating new pages, it’s just a select.

If you want to create pages, you need a pages section.

1 Like

Thank you!
I was not aware of the distinction

That solved my issue :slight_smile: