"Add" button is no longer displayed to add new page

I have noticed that suddenly the “Add” button does not appear on any page to add new pages. If I remove the line “status: draft”, the “Add” button appears. Unfortunately, I can no longer trace back to when this happened.

Here is some background information:

  • I am logged in as admin. There are no other user accounts.
  • All plug-ins deactivated
  • used a standard config.php
  • media folder deleted

sections:

  drafts:
    label: "EntwĂĽrfe ({{ page.drafts.count }})"
    type: pages
    status: draft # <-- No add button appears with this setting
    info: "{{ page.date.toDate('d.m.Y') }}"
    sortBy: title asc
    image:
      back: "#ff6437"
      color: "#ffffff"
      query: false
  
  pages:
    label: "EntwĂĽrfe ({{ page.drafts.count }})"
    type: pages
    info: "{{ page.date.toDate('d.m.Y') }}"
    sortBy: title asc
    image:
      back: "#ff6437"
      color: "#ffffff"
      query: false

Since it works in the Starterkit, there must be something hiding it in your installation. Is the button actually not there (check with dev tools) or hidden?

The div is definitely empty instead of hidden:

<div class="k-button-group k-section-buttons"></div>

Unfortunately, I don’t know where to start troubleshooting. And of course, I want to avoid wasting a whole day on it. It must be a centralised problem, as the “Add” button is missing on ALL pages where I can create new pages (blog, services etc.). And they are all different blueprints that don’t use a common page snippet.

Which Kirby version are you using? Do you get the same error in a fresh Starterkit? I have no idea… Sure there is no plugin/custom code doing stuff in the Panel?

:arrow_right: Kirby 4.3.0
I have removed ALL plug-ins and used the config.php from the starter kit.
Media folder, sessions, cache deleted.
All authorisations are set to true in the user plugin.
I could try to get the working version from the Apple TimeMachine backup. But it will still be difficult to find the reason. And it will take a lot of time.
:thinking: It is completely illogical to me why the add button is suddenly not displayed.

Not a fan of Git version control yet?

I’m afraid I’ll have to pass :frowning: After 1.5 years, I’m happy to be familiar with Kirby. Everything else is still foreign territory for me, although it would make my work much easier.

I was able to find out something, but no solution yet:
With Kirby 4.2.0 the add button is visible, with 4.3.0 it is no longer visible.

I have checked my other projects, all of which have already been updated to 4.3.0. The add button is also missing on another project. The add button is visible on all other projects.

Maybe post a complete blueprint with those sections and the blueprints of the child pages displayed there

This is not necessary as I was able to narrow down the error further.
You gave me a tip regarding the children page.
I have defined a page create dialogue in a children template:

create:
  title:
    label: Blog-Titel
  fields:
    - date
    - themenfarbe
    - tags
  redirect: false
  status: listed

If I leave out line status: listed, the add button suddenly appears again.
Can you tell me the reason for this? Because it worked with Kirby 4.2.0.

Maybe related to this change:

Page section: Show Add button also in sections only showing listed/unlisted pages when all allowed blueprints create new child pages directly as listed/unlisted page section "Add" button is not limited of the page status · Kirby Feedback

Ok, that explains the behaviour. However, I did not understand why I can specify “status: listed” and thus the add button disappears? How can I create new pages with Kirby 4.3.0 that are listed immediately? I would then have to take this into account in existing and future projects.

I wonder if this is a bug after all, seems weird.

:beetle: I have reported it as an issue: