When I click the +Add button on my page section, I get a small popup to put in the title and slug. Is there a way to skip this and go directly to the full page showing all the fields?
Sometimes I start writing and backfill the title later from what I have written, and this popup is a barrier to just start writing into the main text field.
Not out of the box. Kirby needs to create the folder with a text file, so you would need a plugin that auto-creates pages with a random slug and title. Since in most cases you don’t want a random slug (you would have to change it later as well), I wonder if the time saved at page creation is really worth it. Also this would only make sense for pages section where the subpages can only have a single template.
Thanks. That is the case in my project. Indeed there is only one template and the slug does not matter much (It is a list of issues, so the slug should ideally be an automatically generated integer that is increased when a page is generated.)
So I guess for me any slug would be ok, and the title could be empty until specified.
My use case: the website of a bar wants to announce concerts, so I added such blueprint/template/etc. with fields such as date, time, bands, some text, etc. It works as expected, just the +Add dialog is completely without value (and unfortunately confusing the bar owners).
Why without value? Simple: Each concert is uniquely defined by the fields date and bands, so no need for any additional title. Ideally, the title would be generated from date and bands fields, but any random title will be fine as well.
Now, an empty dialog pops up, when I click +Add. No fields to edit, and clicking “Create draft” give me an error message “Form is not valid”.
I added the code to my new file site/blueprints/event.yml and set the “forcedTemplate” field to “event” as well, which hold the template for my event. I did not change anything else.
Could anyone help me? Was my explanation clear enough?
The problem about the empty dialog and the error message might be related to the used PHP version. Are you using PHP8?
As far as I understand your use case, I would propose a slightly different approach. Instead of skipping the Add Dialog, add the fields date and bands to it. So, when adding a new event, one has to enter date and band. Then the new page gets created with these information pre-filled. Furthermore, you could generate the title and slug out of these information by using a hook script.