If you have any suggestions or comments, and would prefer using email, please contact me at:
gngabriel29[REMOVETHISANDREPLACEWITHYOU-KNOW-WHAT]ymail.com

October 17, 2008

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

Enter name of new template

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

Insert new editable region

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

Select template to apply

3. double-click template to apply to current page, eg. missionPortal

Resolve which regions of template, to move the contents of current page to

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 before template is applied

Page after template is applied
Page after template is applied

Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>. I unfortunately do not have a spoiler-code, so be sure mark spoilers well.



Anti-spam measure: please retype the above text into the box provided.