November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
[Required]
public virtual CategoryList Category {get; set;} seems to do the trick.
The virtual creates it as anouther property the override allows it to edit the "Page Data" property but two show in form edit mode either way I try. I need it to override and then only display once in form edit?
This seems to be working and making only one visable in edit mode and force's required when saving, it does not show required before adding a page so works as I need it.
[Required]
[Editable(false)]
public override CategoryList Category { get; set; }
Does anyone know how best to override on a Page Data Property.
I want to add a [Required] around a Category page property to enforce it is set when adding a page.
e.g.
“Article Page” Inherits “Standard Page” which inherits “Site Page Data” which Inherits “Page Data”
I want to set Category to “Required” within “Article Page”.
public virtual CategoryList Category
When I use this within Article Page
[Required]
public override CategoryList Category { get; set; }
It enforces the required when creating a new page but show two Category options in Form editing.