Create a Dynamic Web Template

Applies to
Microsoft Office FrontPage® 2003

To learn how to update the current Dynamic Web Template or attach a different Dynamic Web Template, see Change a Dynamic Web Template.

FrontPage 2003 introduces Dynamic Web Templates, a new and sophisticated type of Web page template that enables you to share a layout among several pages in a site, preserve specific regions of content from unwanted changes, and save time when you begin to manage the Web pages on your Web site.

What is a Dynamic Web Template?

A Dynamic Web Template is an HTML-based master copy of a Web page that you can create to contain settings, formatting, and page elements such as text, graphics, page layout, styles, and regions of a Web page that can be modified. You can attach a Dynamic Web Template to the pages in a Web site, and that template defines the layout for those pages.

How do I use Dynamic Web Templates?

By creating a Dynamic Web Template, you can make regions on attached pages available for other authors to add and modify content, while preventing changes to other regions on the same page. This provides you with control to preserve the layout of the pages and the template itself. When you update the content in a Dynamic Web Template, you can update the attached Web pages simultaneously.

You can use any number of Dynamic Web Templates in a Web site, and you can attach a Dynamic Web Template to as many pages as you like. There are no special template storage restrictions, so you can save your Dynamic Web Template (.dwt) files to any location.

What are the key content regions of a Dynamic Web Template?

Editable regions are those areas that you specify in the Dynamic Web Template as being okay for other writers to edit. For example, you might have a section about upcoming events that changes often. When creating the Dynamic Web Template, you can enable other authors to add or remove event information in the regions you specify without having to worry that they will alter the page layout.

The following screen capture represents a sample Web page that is attached to a Dynamic Web Template. The template specifies the following areas as editable regions:

1. doctitle

2. This Week

3. ViewPoints

Editable and protected regions of the LipService Home page

The screen capture also shows that the following are protected (non-editable) regions:

4. The lips logo in the top left corner of the page.

5. The navigation links, also on the left side of the page.

Protected regions are those areas in the layout that only the author of the Dynamic Web Template can change. For example, you might want to add your logo to a protected region. The logo will appear in the same location on every page that you attach to the Dynamic Web Template. Contributing authors are not able to remove the logo because it is in a protected region.

Who uses Dynamic Web Templates?

Dynamic Web Templates are particularly useful in collaborative environments in which a designer controls the page layouts and other authors add content to the pages but are not allowed to change the layout. When it comes to updating the content on your Web pages, you can do it dynamically!

To demonstrate the use of Dynamic Web Templates, we introduce a scenario that emulates such an environment.

Case scenario: Maple University e-newsletter

Barry Potter is the staff editor of "Lip Service," a monthly e-newsletter at Maple University. Like any college newsletter, this one contains announcements and articles about current events, advertisements, sports, letters to the editor, a photo gallery, an archive of past issues, and more.

Using FrontPage, Barry is designing the Lip Service Web site so that each page has common regions that consist of the e-newsletter name, the logo, and a monthly theme. These are the regions of each page that Barry wants to protect. He is designing the Dynamic Web Template to allow the volunteer student writers to add their content to the newsletter without changing the protected, non-editable regions. When he attaches the Dynamic Web Template to the pages in the Lip Service Web site, the layout will apply to those pages. The writers can then add their content, but they will not be able to modify the regions he specifies as "non-editable" in the Dynamic Web Template.

Like Barry, you can take control of the content on your Web pages and lessen the time you spend updating those pages. To get started using Dynamic Web Templates, see the procedures in the following section.

How do I get started with Dynamic Web Templates?

The procedures that follow enable you to create a Dynamic Web Template, add editable regions while preserving other non-editable regions, and attach the template to Web pages, thereby allowing coauthors to add and modify the content on the Web pages.

Create a Dynamic Web Template

  1. Create or open an HTML document.
  2. On the File menu, click Save As.
  3. In the Save as type list, click Dynamic Web Template, and then click Save.
  4. Create the basic contents and structure of the template in the *.dwt file, and then click Save.

Add editable regions to a Dynamic Web Template

  1. Open the Dynamic Web Template (.dwt) file.
  2. In Page view, at the bottom of the document window, click Design.
  3. Select only the areas in the template where you want to allow other Web authors to change the attached Web pages.
  4. Right-click a selection, and then click Manage Editable Regions.
  5. In the Region name box, type a name for the editable region, for example, Header, Body, or Footer.
  6. Click Add.
  7. Repeat steps 3 through 6 for each new editable region you want to add, and then click Close.

Attach a Dynamic Web Template

  1. Open the Web page you want to attach a Dynamic Web Template to.

To attach the Dynamic Web Template to more than one page, select the pages you want.

ShowHow?

  • In the Folder List, hold down CTRL and click each page you want.

If the Folder List is hidden, click Folder List on the View menu.

  1. On the Format menu, point to Dynamic Web Template, and then click Attach Dynamic Web Template.
  2. Locate and click the Dynamic Web Template you want to attach, and then click Open.

If the body of a selected Web page contains content, the Choose Editable Regions for Content dialog box appears. The dialog box displays the default settings for mapping content from the body of the Web page to editable regions specified by the Dynamic Web Template. The Old column lists content in the body of the Web page. The New column lists editable regions specified by the template.

In the Choose Editable Regions for Content dialog box, do one of the following:

  • To move all of the content in the body of the Web page to the default editable region, click OK. If the default editable region contains content, that content is replaced with the content on the Web page.
  • To move all of the content in the body of the Web page to a specific editable region, click (Body), and then click Modify. In the New Region list, click the editable region you want to move the content to. If you click (none), the content is removed from the Web page.
  • To maintain all of the content and structure of the Web page, click Skip Current Page. The template is not attached to the page.

Does FrontPage still support shared borders and page templates?

FrontPage still includes and supports page templates, which are master copies of a Web page layout that you can use as a starting point to create additional pages. If you want to get a Web page up and running quickly and you are not concerned about other authors making changes to the pages in your site, you can use page templates. FrontPage contains several default page templates. Just add the content and publish — and you have a Web page!

In earlier versions of Microsoft FrontPage, you might have used shared borders to create a region on a Web page that was common to one or more pages in a Web site. You can now use Dynamic Web Templates instead. Unlike shared borders, pages that are attached to Dynamic Web Templates share an entire layout, and they offer much more control over which parts of your pages are available for editing.

How do I change a Dynamic Web Template-based Web site?

After you begin using Dynamic Web Templates, you will need to perform tasks to change the existing page layout. Such tasks can include detaching a Dynamic Web Template, attaching a different Dynamic Web Template, renaming and removing editable regions, and manually updating attached pages.

To learn how to update the current Dynamic Web Template or attach a different Dynamic Web Template, see Change a Dynamic Web Template.

 
 
Applies to:
FrontPage 2003