Prohibit to create documents with non-unique names

alex poplouhin asked on May 5, 2014 12:06

Hi, All

I created a custom document type. I added field to this custom document type and set it as document name. I want to prohibit to create documents with non-unique name. Kentico allow to create documents with non-unique name, because simply adds to document name suffix with index (MyDocument - (1)).

How can I prohibit it?

Recent Answers


Brenden Kehren answered on May 6, 2014 09:04

You can go to the Form tab and change the document name (or whatever field you have as doc name) and it will change the name although your URL will still have docname-(1).aspx in it. There isn't a way to remove the (1) unless you have a unique URL or alias for that page.

If you don't want Kentico to add (1) to the document name, then use a separate field for the doc name.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.