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

Making a template

If you don't already have a site set up, create the folders as described in the previous section. Also, adjust your site settings as described in Book III, Chapter 5. Then, follow these steps to create a template:

  1. Create a new page:

    1. Choose File⇨New from the Dreamweaver menu bar.

    2. On the General tab of the New Document dialog box that appears, click Basic Page in the Category field.

    3. In the field to the right of Category, click HTML.

      Take a look at the Preview pane to get a rough idea of what the design will look like.

    4. Click the arrows on the Document Type (DTD) drop‐down menu and select the appropriate DTD.

      (For information on what a DTD is, see the nearby sidebar.)

    5. Click the Create button.

  2. Save the document to your site folder.

    Design your page as you would for a normal page. See Chapters 15 of this minibook for information about creating pages. Or you can start your design with a prebuilt design, which we discuss in the preceding section.

  3. To make the page into a template, choose Insert⇨Template Objects⇨Make Template from the Dreamweaver menu bar. A second way to do this is to choose File⇨Save as Template.

    Make sure your template stays in the same folder with your site. If you move the template, your template won't work properly. Notice that Dreamweaver gives templates a special file extension (.dwt) and also creates a special folder (Templates) where it stores the template files for the site.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint