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.
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 .
- In the Project Explorer, right click on the WebContent folder (or
subfolder) and then click . The
New Web Page Template wizard opens.
- Type a name for the new nested template, and then select the Design-time
Template radio button.

- Select a design-time page template (the root template) from the
Template box.
- Make sure the Link page to template box is checked.
- Click Finish. The new template you created
opens in Page Designer, and you are prompted to add a content area to the
page.
- 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.
- Add any other elements, such as text, to the common area of the
nested template (the default area surrounding the nested template content
area).
- 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
- Select . The New Web Page wizard appears
- Select the nested template you created in the Template box.
- Type the name of the new file.
- Click Finish.