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:
- Create a new class.
- Add a using statement for the PageTypeBuilder namespace.
- Let the class inherit from TypedPageData.
- 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:
public class ArticlePage : TypedPageData
Related articles and blog posts