On a page section the Add+ button is limited to the all
and draft
statuses and I don’t think there is a good reason to do that.
Sometime I just want to display the listed
ones, I can click on the headline to see all of the supages if needed.
https://getkirby.com/docs/reference/panel/sections/pages#add-button
We don’t include the button when the status is not including “drafts” because it would feel like a bug or be very confusing for editors when they add a new page and it doesn’t appear in that list.
@Bastian Yeah I got your point Bastian, this can be the default behavior. But in full knowledge and full consent the option can be choosen to the desired states.
As an example here, it’s for my portfolio, I’m comfortable with Kirby and know where to find stuffs I’m looking for.
As a forced option, I like it!
Now that you can change the default page creation status, I feel this request should be revisited.
As now, you can set the default status to “listed”, but the “Add” button will still only appear on the “drafts” pages field, not on one that just displays “listed”, so this can now cause the confusion that @Bastian was originally concerned about (just the other way around!).
Maybe the “Add” button could display automatically if there are page types with their default status matching that pages field’s status? This way, newly created pages would always appear where expected.
@James Cocker The difficulty here is that a page section can contain pages with different blueprints. But the new create default status option is not in the blueprint of the section (the parent) but would be used from the bluepritn of each child. So different blueprints could have conflicting values and checking/loading blueprints for all children could also be bad for performance.
Though I’ll give it a try to find a solution.