Click to See Complete Forum and Search --> : DWT - Dreamweaver Web Template


dongan
05-08-2007, 12:33 PM
Hi,

I have just heard this term "Dreamweaver Web Template (DWT) and i thought it is really useful to use in the basic site which has 5-10 pages.

Can anyone clarify me my queries?

1) is it possible to include common header and footer? if so, how. because, in php, we can use include statement.

2) What is the advantage of using DWT rather than just copying the basic template and edit it?

3) is it simply enough to keep the template file under templates directory and call them in about.html, contact.html files? if so, how can i do that?

basically, i need a mechanism to have the common header and footer to make sure that any changes will reflect in all pages immediately.

Any help is greatly appreciated.

Thanks.

Regards,
Dongan

ray326
05-08-2007, 04:08 PM
1. The common elements are duplicated in all pages either during creation or publishing. (Not sure because I don't use DW.) BTW, the server side includes are a better way to do the templating.

2. Changes to the template should be recopied to all pages automagically.

3. I don't think DW works that way because it's building the pages for you in the editor, not on the server.

You're better off doing it with server side includes of some type.