Automatically create slug based on document title
Currently, I have a hard time explaining to some of my customers (who are used to WordPress) why they have to manually set a slug for each document.
To make life easier for my customers and myself, I would love for caisy to just automatically set and update a slug based on the title of the Document, converting spaces to hyphens and dealing with Umlaute automatically.
Demo:
document_title: "Über uns",
autogen_slug: "ueber-uns",
Why is this important?
If I don't want my customers to manually add slugs, I currently have to fetch all Documents just to convert the title of these Documents to a slug-version. With the converted titles, I can then perform a .find() on them to match the current URL to one of the converted slug.
Log in to comment and vote
Comments1
Gabriel Svennerberg
Mar 29, 2024
I agree that this should be a feature in Caisy. In my meaning, it's a must-have feature.