How to Attach Files to a Template in Dreamweaver MX
The use of templates in Dreamweaver when building webpages can lend a good deal to the design and development effort of any project. Templates are one of the best ways to keep a well-maintained website orderly and ensure changes are done in an efficient manner. Pages can be attached and detached to templates quickly enough, saving a tremendous amount of time while maintaining the aesthetic uniformity of the site itself. Various regions of a template can be locked or made editable depending on the overall design.
Instructions
-
-
1
Open Dreamweaver MX.
-
2
Create a new page or copy an existing one to the directory where the template resides.
-
-
3
Click "Modify>Templates>Attach Template to Page". The Select Template dialog box appears.
-
4
Select your site name from the "Site" drop-down field.
-
5
Select the name of the template you want attached from the "Templates" list field. Make sure the "Update page when template changes" check box is selected.
-
6
Click "Select." The "Inconsistent Region Names" dialog box appears. Here you will have to define which regions are to be mapped to your template.
-
7
Click the "Document body" name under "Editable regions" and under the "Move content to new region" drop-down field, select the "EditRegion1" option. Do not click the "Use for all" button. Simply leave it as is.
-
8
Click "OK." The template is now attached to the new page. There may be other editable regions, they will display as "EditRegion2," "EditRegion3" and so on. Ignore these unless you have other content for them.
-
9
Save your webpage as whatever name you choose.
-
10
Test your new webpage by clicking the "Preview/Debug in browser" icon on the menu bar.
-
1