To create (EPiServer) properties with Page Type Builder we add regular code properties to a class that defines a page type and annotate them with the PageTypeProperty attribute.

For instance, to add a property of type PropertyXhtmlString to a page type we could add the following code:

public virtual string MainBody { get; set; }

Related articles and blog posts

Last edited May 24, 2011 at 6:18 PM by joelabrahamsson, version 3


No comments yet.