[Editable(true)] [Display( Name = "Show Foo", Description = "Show or hide page Foo", GroupName = SystemTabNames.Settings, Order = 2 )] public virtual bool ShowFoo{ get; set; }
How do I set the default value to true? I know I can do this in Admin Mode, but I'm hoping I can do it in code. There's a box on the Page Type Property Editor regarding default values. There has to be something that sets that right?
I have a property set up like so:
[Editable(true)]
[Display(
Name = "Show Foo",
Description = "Show or hide page Foo",
GroupName = SystemTabNames.Settings,
Order = 2
)]
public virtual bool ShowFoo{ get; set; }
How do I set the default value to true? I know I can do this in Admin Mode, but I'm hoping I can do it in code. There's a box on the Page Type Property Editor regarding default values. There has to be something that sets that right?