Skip to content

Instantly share code, notes, and snippets.

@simple17
Last active June 28, 2019 14:12
Show Gist options
  • Save simple17/3be774aefa10bc91e5edd12f76982646 to your computer and use it in GitHub Desktop.
Save simple17/3be774aefa10bc91e5edd12f76982646 to your computer and use it in GitHub Desktop.
[Epi Property attributes] episerver Property attributes #episerver #c#
////Show only commerce content
[UIHint(EPiServer.Commerce.UIHint.CatalogContent)]
////Required
[Required]
////Value range
[Range(50, 2000)]
[Range(2, 999, ErrorMessage = "Number of logins range from 2 to 999.")]
////Allow data types
[AllowedTypes(new[] { typeof(UltibroFlameVideoData)})]
////Hide extended property
[ScaffoldColumn(false)]
public override String CommonHeadCustomHTML { get; set; }
////Allow page types
namespace XXX.Models
{
[ContentType(
DisplayName = "BrandPage",
GUID = "0e4f7257-ee68-478c-b3d6-f32c342ac46d",
Description = "Page used to group Brand Indications page")]
[AvailableContentTypes(
Availability.Specific,
Include = new[] {
typeof(BrandLandingPage.Models.BrandLandingPage),
typeof(OnePageTemplatePage.Models.OnePageTemplatePage),
typeof(ServicePage.Models.ServicePage),
typeof(BlankPage.Models.BlankPage)
})]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment