i’m working on a Kirby 4 backend for managing date based entries.
So i can print out a pages list in the panel and the pages are sorted by date via:
num: '{{ page.datefield.toDate("Ymd") }}'
in the page blueprint.
Thats works fine. But when i use the add button of the pages section, the typical dialog appears and wants me to enter a title and a slug. But the entries have no titles, the slug should be a random id.
My first approach was to use the Janitor plugin and add a custom create button next to the list, to set up a page with current date and random slug with php. But janitor needs the kirby CLI and i have no idea how i could manage to install it on a shared webspace.
What would be the best approach to solve my problem?
Kirby by default adds an appendix (‘copy’), so the dialog gives you a chance to amend it. Of course, this is not useful if the slug should be created automatically.
You could probably overwrite the duplicate dialog, if you can’t wait until this might get implemented. Don’t know if there is a feature request yet.