For a sitecore project, I need to validate the uniqueness of item names (to avoid url overlap)
It is possible to add the 'Duplicate name' Item validation rule to the item's template (to see these options, make sure 'show standard fields' is selected in the 'view' tab, in the content editor ribbon)
However, the options available here are to add the validation rule to the
- Quick Action bar
- Validation Button
- Workflow Validation Rules
Should I apply it as a workflow validation rule, and enable workflow (for all my content items)? That would work, but it seems like a lot of effort for the end user if they have to use workflow for something.
What I want to achieve is to simply show a validation message when the user tries to save the item (and uses a name which is already taken). Basically in the same way field validators work in sitecore
None of these choices seem to achieve this effect.
So my question is, what is the easiest way to achieve this?