Template Categories

templates categories Automobiles
templates categories Business
templates categories CSS Templates
templates categories E-Commerce
templates categories Education
templates categories Fashion
templates categories Greeting Cards
templates categories Hotels
templates categories Jewelry
templates categories kids
templates categories Models
templates categories Music - Films
templates categories Night Club
templates categories Real Estate
templates categories Restaurant
templates categories Software
templates categories Sports
templates categories Travel
templates categories Web-design
templates categories Wedding

Tutorial Categories

tutorial categories AJAX
tutorial categories CSS
tutorial categories Dreamweaver
tutorial categories Flash
tutorial categories FTP - File Transfer
tutorial categories HTML Emails
tutorial categories Javascript
tutorial categories Microsoft Excel
tutorial categories Microsoft Windows
tutorial categories Microsoft Word
tutorial categories MySql
tutorial categories Photoshop
tutorial categories Php
tutorial categories Windows Movie Maker
tutorial categories Xhtml / Html

Creating a template in DREAMWEAVER 8.0


Templates are a boon if your site has many pages ( running into hundreds ) because the boring task of creating the same design page again and again for the current as well as future content is avoided. A template is a master page with fixed design and colour elements which repeat on each and every page of your website so as to give it same look and feel.

Once a template is created you cannot modify the content unless an editable region is set. It is this editable region that will hold the changing data/content for every new page you create. This tutorial will show you how to create a template from a fresh document / already created document and how to set editable regions. Templates are commonly used for database driven websites / BLOGS etc.

To create a template:

Open the document you want to save as a template:
1. To open an existing document, select File > Open, then select the document.
2. To open a new blank document, select File > New. In the dialog box that appears, select Basic Page or Dynamic Page, select the type of page you want to work with, and then click Create.

When the document opens, do one of the following:

1. Select File > Save as Template.
2. In the Common category of the Insert bar, click the arrow on the Templates button, then select Make Template.
common_insert_dreamweaver

The Save As Template dialog box appears.

Select a site to save the template in from the Site pop-up menu, then enter a unique name for the template in the Save As text box.

Click Save.

Dreamweaver saves the template file in the site’s Templates folder in the local root folder of the site, with a .dwt filename extension. If the Templates folder does not already exist in the site, Dreamweaver automatically creates it when you save a new template.


NOTE: Do not rename or change the the folder created by dreamweaver to save template.

This is a picture of the feature being described.
To use the Assets panel to create a new template

In the Assets panel (Window > Assets), select the Templates category on the left side of the panel.
The Templates category of the Assets panel appears.
assets_panel_dreamweaver

Click the New Template button at the bottom of the Assets panel.
A new, untitled template is added to the list of templates in the Assets panel.

While the template is still selected, enter a name for the template, then press Enter (Windows) or Return (Macintosh).
Dreamweaver creates a new blank template in the Assets panel and in the Templates folder.

To create/insert Editable regions
In the Document window, do one of the following to select the region:

1. Select the text or content that you want to set as an editable region.
2. Place the insertion point where you want to insert an editable region.

Do one of the following to insert an editable region:

1.Select Insert > Template Objects > Editable Region.
2. Right-click (Windows) or Control-click (Macintosh), then select Templates > New Editable Region.
3. In the Common category of the Insert bar, click the arrow on the Templates button, then select Editable Region.
dreamweaver_editable_region_dialogue_box

The Editable Region dialog box appears.

In the Name text box, enter a unique name for the region. (You cannot use the same name for more than one editable region in a particular template.)
Click OK.

The editable region is enclosed in a highlighted rectangular outline in the template, using the highlighting color that is set in preferences. A tab at the upper-left corner of the region shows the name of the region. If you insert an empty editable region in the document, the name of the region also appears inside the region.

You can create as many editable regions as required.
NOTE : While creating template for database driven website be sure to create all the connections and other recordsets ( queries ). If you try to modify or add at latter stage Dreamweaver template will not allow you.