Master Pages

More often than not it's a good idea to use a master page. Here we've moved the parts surrounding the content and the title into a master page:

Creating a master page file

Since we can expect that several content types will be using this master page we should make shure that the generic type we're using is shared by all these classes, e.g. the AbstractBasePage class. Same as for pages if you arn't interested in any customized properties of your content classes you can inherit N2.Web.UI.MasterPage<N2.ContentItem>.

Using the appropriate generic type for the master page base

Now the page template is reduced to this: The content page