
I build maps where users can add locations. To prevent slug duplicates, I use the page uuid as the slug using this technique by lemmon: https://forum.getkirby.com/t/feature-uuid-as-a-slug-option/31344
It would be nice to have it built in – in the page blueprint:
create:
slug: uuid
Have you tried if slug: '{{ page.uuid }}' is doing the job already?

No, not yet.


You can use {{ page.uuid.id }}

As a new feature in Kirby 6? Sonja confirmed in the forum threat I linked to, that that would create slug with a different uuid than the page’s uuid, because the page’s uuid is not known yet at that point.

We fixed that, yes.

Awesome!