SaaS CMS has officially launched! Learn more now.

Custom Validator for UrlSegment "instead of" UrlSegment.ValidateEventHandler



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,


Aug 29, 2008 16:24

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

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

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.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.