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.

Add a comment

Allowed tags: <b>, <em>, <quote cite="">, <code>, <c-sharp-code>, <css-code>, <sql-code>, <xml-code>, <javascript-code>. If you want to display code examples, please remember to write &lt; for < and &gt; for >.

Follow me on Twitter

  1. Blogged: Learning Scala part eight – Scala’s type hierarchy and object equality http://bit.ly/doyszt 1 days ago
  2. @andreakn in markup or code behind? For the latter you can use the getpropertyname extension method 1 days ago
  3. @andreakn No, but there are plans to support the "built-in" props for subscriptions etc somehow 2 days ago
follow me

Latest comments

  1. Svante wrote "Hi, nice catch! However, as you state, you took the easy ..." on Something to beware of when using EPiAbstractions and an IoC container
  2. kad1r, asp.net, c# wrote "It works. Thank you." on Twitter style paging with ASP.NET MVC and jQuery
  3. Pandiya Chendur wrote "Absolutely wonderful article.. Just loved it..." on Twitter style paging with ASP.NET MVC and jQuery

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