Creating a nested page template

Show Me

You can use nested page templates to create multiple templates with a consistent look and feel. Nested page templates give you more flexibility in Web sites that have both static pages and dynamic pages.

Create a Web page template (You will use this template as the root template).

A nested page template is a page template that is based on an existing page template (also known as the root template). A nested page template can have content areas inside the content area of the root template. These nested page template content areas are later filled in by the pages that are based on the nested page template. When a page is based on the nested template, all areas of the page are read-only except for the nested template content area. Note that nested page templates are only supported for design-time page templates .

  1. In the Enterprise Explorer, right click on the WebContent folder (or subfolder) and then click

    File | New | Web Page Template . The New Web Page Template wizard opens.

  2. Type a name for the new nested template, and then select the Design-time Template radio button.

  3. Select a design-time page template (the root template) from the Template box.

  4. Make sure the Link page to template box is checked.

  5. Click Finish. The new template you created opens in Page Designer, and you are prompted to add a content area to the page.

  6. From the Page Template drawer of the palette, drag a content area inside the content area defined by the root template. This is the nested template content area. This area will be editable on all pages created from the nested template.

  7. Add any other elements, such as text, to the common area of the nested template (the default area surrounding the nested template content area).

  8. Save the nested page template.

Here is an example of what the content areas could look like in a browser.

Any changes to the root template will be changed in the nested template and in all Web pages based on the nested template.

To create an instance of your new template:

  1. Select

    File | New | Web Page . The New Web Page wizard appears

  2. Select the nested template you created in the Template box.

  3. Type the name of the new file.

  4. Click Finish.

 

Related concepts

Page templates

Design-time page templates and dynamic page templates

Nested page templates

 

Related tasks

Creating a Web page template

Laying out a page template with tables

Generating Web pages from page templates

Applying or replacing page templates to Web pages

Applying a page template to a Web site

Adding content to a page template