How the PageTypeAttribute’s Properties Map to EPiServer CMS’ Admin

When using Page Type Builder page types are declared in code and a class is equivalent to an EPiServer CMS page type. The criteria for a class being a page type is that it’s a subclass of TypedPageData and that it has a PageType attribute. All of the settings for a page type, except for which properties it has, that is normally done in admin can be done using the PageType attribute’s properties. The name of these properties are usually self-evident but there are a few exceptions. Therefore I thought I’d provide a little visual aid for how the PageTypeAttribute class’ properties map to the settings for a page type in admin mode. The text in red in the images below is the name of the corresponding property in PageTypeAttribute.

pagetype-information-settings

pagetype-default-values

pagetype-available-page-types

I’ll soon post a similar aid for the PageTypePropertyAttribute class.

PS. For updates about new posts, sites I find useful and the occasional rant you can follow me on Twitter. You are also most welcome to subscribe to the RSS-feed.

Follow me on Twitter

  1. @chraas You might want to use it for complex parts of the site and not use it for simple rendering pages. 1 days ago
  2. @chraas In theory more SOLID, but I'm not sure it's worth the price. 1 days ago
  3. @chraas Be warned that you're introducing one big chunk of complexity with EPiMVP :) 1 days ago
follow me

Latest comments

  1. Berra S wrote "Read your post at http://joelabrahamsson.com/entry/using-xfo..." on PageData objects not returned as typed when using Page Type Builder and FindPagesWithCriteria
  2. Linus wrote "1 up for behaviour being as close as expected as possible!" on A common problem with Page Type Builder and UniqueValuePerLanguage set to false
  3. Joel Abrahamsson wrote "Hi Hans, Could it be that you previously didn't have Page..." on Page Type Builder 2.0 released

About this site

This blog is built with EPiServer Community, EPiServer CMS, ASP.NET MVC and a bunch of other great products. The source code is available for download at the projects page, where you also can read more about this site and my other projects.

read more