statamic / workshop

Create and edit entries, pages, and globals on the front-end of your site without the control panel.
https://statamic.com/marketplace/addons/workshop
3 stars 2 forks source link

Auto-Increment Option Needed for Duplicate Entry Slugs #18

Open bgarrant opened 6 years ago

bgarrant commented 6 years ago

Describe the bug When saving an entry with a duplicate slug (same title), we need the slug to auto-increment somehow so any matching entries will not be overwritten. The title of the event will be the same each year so that cant be changed.

To Reproduce Just make a new entry in a Workshop form with the same title and the slug will be the same. Save and it will error, but USERS will not understand as they have no idea what slugs are.

Expected behavior A number should be added at the end of the slug like -2 when a duplicate slug is found.

Screenshots If applicable, add screenshots to help explain your problem.

Environment details (please complete the following information): Using latest 2.10.2 Statamic and Workshop 1.1.0.

Additional context