Skip to content

New PageTypePropertyGroupPropertyOverride attribute#16

Open
croweman wants to merge 3 commits into
joelabrahamsson:masterfrom
croweman:master
Open

New PageTypePropertyGroupPropertyOverride attribute#16
croweman wants to merge 3 commits into
joelabrahamsson:masterfrom
croweman:master

Conversation

@croweman

Copy link
Copy Markdown

Example usage:

[PageType]
public class TestPageType
{
[PageTypePropertyGroup(EditCaptionPrefix = "Prefix ")]
[PageTypePropertyGroupPropertyOverride(PropertyName = "PropertyOne", DefaultValue = "Pickle")]
public TestPropertyGroup TestPropertyGroup { get; set; }
}

public class TestPropertyGroup : PageTypePropertyGroup
{
[PageTypeProperty(
Type = typeof(PropertyString,
SortOrder = 100,
DefaultValue = "Cheese",
DevaultValueType = DefaultValueType.Value)]
public virtual string PropertyOne { get;set; }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant