Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Creating a template

A Dreamweaver template is a type of master page from which child pages are derived. Although you can create a template from a blank page, it is far more practical—and common—to convert an existing page into a template. Even better, it’s extremely easy as you’ll learn in this exercise.

1.
Start Dreamweaver.

2.
If necessary, press F8 to open the Files panel and choose DW CIB from the site list.

3.
From the Files panel, expand the lesson13 folder and double-click the template_ start.htm file to open it.

The basic operation for converting an existing page to a template is a single step: you save the page as a template.

4.
Choose File > Save as Template.

Because of their special nature, templates are stored in their own folder, Templates, which Dreamweaver creates at the site root level. Because these files are always stored in the same location, there is no need for the traditional Save As dialog box.

5.
When the Save as Template dialog box is displayed, make sure that DW CIB is chosen in the Site list. Enter employee_profile in the Name field and leave the Description field blank. Click Save. When Dreamweaver asks if you’d like to Update Links, click Yes.

Note

Because the new template is stored in a different location than the file is was derived from, it’s important to update links to any images, CSS style sheets or other dependent files.

Although the page looks exactly the same as before, you can identify a template through the title bar, which now has the added term: <<Template>>.

6.
Choose File > Close.

Next, you’ll learn how to apply the heart and soul of Dreamweaver templates: editable regions.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial