Kentico CMS 6.0 Tutorial  

Page templates

Page templates

Previous topic Next topic Mail us feedback on this topic!  

Page templates

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The Kentico CMS portal engine provides a highly flexible and extensible framework that allows you to build complex dynamic websites using built-in and custom web parts. This chapter explains how the portal engine works.

 

What is a page template?

 

Every web page is based on some page template. The page template can be specific for a single page (so called "ad hoc" page template) or it can be re-used for several pages. The following picture shows an example of two pages that use the same page template:

 

tutorial_clip0038

 

As you can see, both of them use the same header, main menu, sub-menu, content structure and footer — they are based on the same page template. In this way, you can create multiple pages using the same design.

 

What does a page template consist of?

 

A page template is a combination of page layout (ASCX or HTML code) and web parts. The following figure illustrates the structure of the page template and how it's used to display a page:

 

 

tutorial_clip0180

 

As you can see, the page layout is a piece of simple, fully customizable HTML code that defines the design of the page and contains web part zones. The web part zones can contain web parts. The web parts display page content or provide some functionality, such as input forms. The layout and the web parts together define the page template.

 

When you add page specific content to the page template, you get the final page.