Design

Pages created in Sitefinity are based on page templates. These pages inherit their parent template's layout & design. By working with page templates, web site administrators can establish a consistent layout & visual experience for the entire web site. Likewise, editors can inherit these designs and focus purely on the content being created.

Basing a new Sitefinity page on an existing page template.

Important concepts before starting

Create a new ASP.NET Master Page

Follow these steps to create a new Sitefinity Page Template:

The the new Master Page in Visual Studio's Solution Explorer window

Create a new ASP.NET Theme

The App_Theme related folders in a Sitefinity Web Application Project

* 
{
    padding: 0; margin: 0;
}
body 
{
    background-color: #EEE;
    font-size: 18px;
}
p 
{
    margin: 1em 0 1em 0;
}
.wrapper 
{
    width: 700px;
    background-color: #FFF;
    border: 1px solid #999;
    margin:2em auto;
}
.header 
{
    padding: 0.75em;
    border-bottom: 1px solid #999;
}
.header h1 
{
    font-size: 2em;
}
.sidebar 
{
    width: 160px;
    float: right;
    padding: 0.75em;
}
.main 
{
    padding: 0.75em;
    margin-right: 190px;
    border-right: 1px solid #999;
}
.footer 
{
    padding: 0.75em;
    border-top: 1px solid #999;
}

Add the ASP.NET Theme to Sitefinity

1. Log into Sitefinity and click Administration -> Settings.

Click Administration and then Settings from Sitefinity's Administrative menu

2. Switch into Advanced settings

Click Advanced in Sitefinity's Basic Settings

3. Select Appearance -> Frontend Themes and click the Create New button.

Appearance and Frontend Themes settings in Sitefinity

4. Type the Name and Path to the new ASP.NET Theme.

Frontend Theme settings for a Sitefinity Theme

Add the Master Page Template to Sitefinity

1. Log into Sitefinity and click Design -> Page Templates

Click Design and then Page Templates in Sitefinity

2. Click the Create a template button.

Click the Create a template button in Sitefinity

3. Type the name for this new Page Template, select Use Template and then click Select another Template.

Create a template options in Sitefinity - Use an existing template

4. Click the Use your own .master file button.

Click the Use your own .master file button

5. Select that master page from the list of files and click the Use Selected button.

Select a masterpage in App_Master for Sitefinity

6. Click the Create and go to add content button.

Click the "Create and go to add content" button

7. Click the Theme button and select the new theme from the dropdown.

Click the Layout button to toggle into Layout View for the Page Template

Populate the template with content

All content added to this template will be automatically inherited by any page based on this template. Consequently, it's possible to place a page title, footer, navigation, sidebar or any other element onto the template and these elements will appear site-wide.

1. Toggle into Content mode and drag & drop a Content block widget onto the page.

Sitefinity's Content mode and the Content block widget

2. Click Edit to modify the Content Block.

3. Drag & drop the Navigation widget onto the template, click Edit to modify.

Finish Sitefinity template with a Content block and 2 navigation widgets

4. Click the Publish button to save this template.

Create a page based on this template

1. Click Pages and click the Create a page button.

Sitefinity Pages and the Create a page button

2. Click the Select another Template button.

Select another Template button

3. Select the custom template and click the Done button.

Selecting a custom template through Sitefinity

4. Click the Create and go to add content button.

Create and go to add content button

Next steps...

Populate the page with content and create more pages.

Content can now be dragged & dropped onto the page. In additional, multiple other pages can also be created. The entire web site can be built and populated. All of these pages will be based on their parent template. As a result, all page will share a common look and any changes to the underlying template will be spread to all of its child pages.

For more information, check out the Sitefinity Designers Guide.