Custom Validator for UrlSegment "instead of" UrlSegment.ValidateEventHandler

Vote:
 

Hi,

I have been trying to disable the default validator for UrlSegments (Page name in Web address) but with no success. The reason to do so is I want to replace all invalid characters within the property so the editor does not need to care about writing invalid characters or not.

I don't want to disable other validators. So, is there a possibility except using RemoveDefaultValidators?

The best,

Coskun

#23174
Aug 29, 2008 16:24
Vote:
 

You should be able to remove only the UrlSegment validator by call

EPiServer.GlobalPageValidation.Validators -= EPiServer.Web.UrlSegment.ValidateEventHandler;

#23403
Sep 04, 2008 16:24
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.