This project is read-only.

Creating EPiServer Page Types with Page Type Builder

Creating page types with Page Type Builder is done by creating a non-abstract class that inherits from TypedPageData and is annotated with the PageType attribute. The full process of creating a basic page type involves:

  1. Create a new class.
  2. Add a using statement for the PageTypeBuilder namespace.
  3. Let the class inherit from TypedPageData.
  4. Annotate the class with the PageType attribute.

For example, to create a page type named Article with no specific settings we could use the below code:

using PageTypeBuilder;

namespace MySite.PageTypes
{
    [PageType]
    public class ArticlePage : TypedPageData 
    {
    }
}

Related articles and blog posts

Last edited May 24, 2011 at 7:18 PM by joelabrahamsson, version 4

Comments

No comments yet.