Currently, Kirby offers title, slug and template fields when creating a new page. Not all pages require this specific setup. Some pages might require a select box for title selection, other pages might require additional fields to be used in a hook to updates title or slug.
Currently, this functionality is provided by the Custom Add Dialog plugin which allows to set the used field in the blueprint.
As Kirby offers it’s own query language, it might also be interesting to use this for advanced title or slug generation that currently requires hook logic. E. g. there could be generate
option in the blueprints to generate field composites:
fields:
title:
label: title
generate: Almanac {{ page.date.format('Y') }}
Or:
fields:
slug:
generate: {{ page.methodToGenerateHash }}
Some additional ideas on setting up custom fields inside the create dialog: https://github.com/steirico/kirby-plugin-custom-add-fields/issues/47
Would love to see an autopublish and redirect option here as well:
createDialog:
fields:
title: false
slug: ...
# more field definitions
redirect: false
publish: true
🎉