Section 11.2. Saving Your Page as a Template


11.2. Saving Your Page as a Template

The next step is to save your modified index.html page as a template file. Go to the main menu, and choose File Save As Template. The Save As Template dialog box appears, as Figure 11-6 shows.

Figure 11-6. The Save As Template dialog box


The current Dreamweaver site should appear in the Site field. If it doesn't, open the menu and choose the correct site.

In the Save As field, type a name for the template. This should not be the same as your home page, index.html. Come up with something else short and descriptive, such as main or layout. If you plan on creating several different templates for various styles of pages on the site, you might also leave a short text description of this template in the Description field, although you can also safely leave this field blank.

When you're ready, click Save. The Save As Template dialog box closes, and Dreamweaver adds a new directory to your local root folder called Templates and saves your template inside it with the .dwt extension, as Figure 11-7 shows.

Figure 11-7. Your template's new home


TIP

When you save your page as a template, you may get a dialog box that asks you about updating links. If so, click Yes. This dialog box appears when your page includes hyperlinks or pointers to external content, such as the spacer image in a tables-based layout.




Dreamweaver 8 Design and Construction
Dreamweaver 8 Design and Construction (OReilly Digital Studio)
ISBN: 0596101635
EAN: 2147483647
Year: N/A
Pages: 154
Authors: Marc Campbell

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net