Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Episerver should not validate the current page if LinkType is something other than Normal (ie FetchData, ShortCut, External)

Vote:
 

When setting Page.LinkType to something other than PageShortcutType.Normal, Episerver should not validate the current page since the data comes from somewhere else. For FetchData, only the properties in the current page that are actually used should be validated.

Since the [Required] attribute forces you to set the value before creating a page (before you can set LinkType), it would be great if we had a "RequiredOnPublish" attribute to use.

Of course as developers we could write our own validation attributes for this usage scenario, but it would be better IMO if this was built in since there is potentially many different validation attributes that needs to be replaced, not only [Required]

#231009
Nov 17, 2020 11:03
This thread is locked and should be used for reference only.
* 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.