Dreamweaver Create and Use Templates
Good day to all, today we’ll be looking at how to create and use of templates with Dreamweaver.
Create template
1. Create a page with the desired format
2. Select File > Save as Template
3. Enter name of template, eg. missionPortal
4. click Save, to save template
5. Click Yes, to update links
note: dreamweaver template files are created inside a folder called Templates, and should have extension of dwt
Add editable region for a template file
1. open template file, eg. missionPortal.dwt
2. select part of the template which you wish to make editable, select Insert > Template Objects > Editable Region
note: for pages with template applied, the editable region can be changed, all other regions of the page cannot be edited (unless they are repeating or optional regions)
3. Enter name for new editable region, eg. content
4. click OK, to add the editable region
Apply template to a page
1. open page to have template applied to it, eg. missions.asp
2. select Modify > Templates > Apply Template to Page
3. double-click template to apply to current page, eg. missionPortal
note: for pages with no corresponding regions in the new template, you can select the affected regions and select which region of the template to move the content to
eg. contents of the document body of current page can be moved to the editable region of the template called ‘content’
eg. contents of the document head of the current page may not be needed, so you can select to move its contents to Nowhere, which effectively means to just discard information inside document head of the current page

Page before template is applied

Page after template is applied

Comments »
No comments yet.
RSS feed for comments on this post.