N2CMS

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:

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>.

Now the page template is reduced to this: