getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.27k stars 167 forks source link

Page creation dialogue: "add" button is no longer displayed [regression] #6597

Closed gbdesign2023 closed 1 week ago

gbdesign2023 commented 1 month ago

Since Kirby 4.3.0 the page creation dialogue no longer works as before.

If I complete my blueprint as described here ... https://getkirby.com/docs/reference/panel/blueprints/page#page-creation-dialog

title: Product
create:
  title:
    label: Product name
  fields:
    - price
    - brand
  redirect: false
  status: listed

... the "add" button no longer appears on the parent page:

430

Only when I delete the line "status: listed", the "add" button is displayed again. However, the newly created page is then saved as a draft, which is undesirable.

This still worked with Kirby 4.2.0:

420

I have already started a discussion about this: https://forum.getkirby.com/t/add-button-is-no-longer-displayed-to-add-new-page/32136

distantnative commented 1 month ago

@gbdesign2023 In the parent blueprint are you filtering the section by status: draft?

Then this isn't a bug but a change resulting from a fix. As the new page would created directly as listed, you would add it on a section that wouldn't display it after creation. We don't allow this (hiding the Add button) as this would be a rather confusing UX. The add button appears when the page created can be shown in the section after creation.

distantnative commented 1 week ago

Closing it for now. If you have any information that this is not as I stated above, please let us know and we can reopen it.