Last active
June 28, 2019 14:12
-
-
Save simple17/3be774aefa10bc91e5edd12f76982646 to your computer and use it in GitHub Desktop.
[Epi Property attributes] episerver Property attributes #episerver #c#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////Show only commerce content | |
[UIHint(EPiServer.Commerce.UIHint.CatalogContent)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////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