Custom URL schema for section/sub-pages

Hello!
I want to implement a sort-of “Microblog” for my website where I can post little statuses that get federated to Bluesky, Mastodn, … etc. I’d like to have the URL schema be /status/<uuid> but I can’t find out how to implement it.

I guess I need a custom controller? Or something similar? I’d like to upgrade the page URL as well so that other parts of Kirby (and plugins) use the custom URL, too.

Any help highly appreciated!

1 Like

Based on your example, what’s stopping you from having a parent page status and making the microblog posts children of this page? That would give you this structure out of the box.

Otherwise, have a look at Routes | Kirby CMS. You could use a custom page model (Page models | Kirby CMS) to overwrite the ->url() method of the pages where you want to use a different URL pattern.

maybe have a look at the create dialog for your status pages… you can create a custum slug there. after that i would choose the first tip from @distantnative

1 Like

@David thank you, that’s what I was looking for!