AI OnAI Off
You could call EPiServer.GlobalPageValidation.RemoveDefaultValidators to remove the validators. However that will remove all validators and not just the simple address vaildator. You could then add back the other validators by calling:
//GlobalPageValidation.Validators += ValidateExternalURLHandler; (this is now removed)
GlobalPageValidation.Validators += ValidatePublishDatesHandler;
GlobalPageValidation.Validators += ValidateLanguageBranchHandler;
GlobalPageValidation.Validators += UrlSegment.ValidateEventHandler;
GlobalPageValidation.Validators += ValidatePageLink;
Then it would be up to you to validate the simple address.
I need to alter the value entered into the 'Simple address for this page' field before saving the page. Running multiple sites so I need to programatically add a prefix to the simple address entered by the editor to make the url unique per site.
I've tried attaching to all the datafactory and urlsegment events but none of these fires before the edit page validates the simple url.
Any suggestions on how to solve this?
Stig