We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Option to prevent duplicate slugs
I would love an option for the slug field type that would check for existing duplicate slugs, and add a number to the end of the slug if a duplicate exists, similar to the way Wordpress handles pages with the same name.
For example, if I have:
<perch:content id="title" type="text" label="Title" /> <perch:content id="slug" type="slug" for="title" />
and an editor creates two items with the same title, they get the same slug. Of course, I can set editable="true" and explain to the editor in help="" that slugs need to be unique, but they may forget (as has happened to me multiple times).
It would be great if there were an option like prevent-duplicates="true", so if two pages have a title of "This Is The Page Title", the first slug would be 'this-is-the-page-title' and the second would be 'this-is-the-page-title-2'.
Want to reply to this thread?Login with Perch