BESTPROOFINGSERVICE.COM

for proofing tools - www.bestproofingservice.com

Menu


turning the items into links or formatting the text the way you want it. Just get the placeholder text into the layout to represent the


three sections. Figure 11-5. Placeholder text indicates the sections of the content area   When you press Enter or Return to separate the lines of placeholder text, Dreamweaver automatically marks up the placeholder elements as paragraphs, as you can see by checking the Format menu on the Property Inspector. This is an important point to remember for when you add editable regions to your template (see "Defining Editable Regions" later in this chapter). Now compare the items in your fixed/variable mental worksheet with the elements that you've added to your Dreamweaver layout, and you find that they're a one-for-one match, which is exactly how you want it.           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.             11.3. Defining Editable Regions Dreamweaver assumes that all the content in the template is fixed unless you specify otherwise, so, now that you have the template file, you can add the editable regions.