View Single Post
Old 05-14-2007, 01:56 PM   #5 (permalink)
noob78
Inactive
 
noob78's Avatar
 
Join Date: 08-07-06
Posts: 142
iTrader: 0 / 0%
Latest Blog:
None

noob78 is liked by many
I replied in bold below

Quote:
Originally Posted by dongan View Post
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.
Yup, you can in DW. The difference is that, you won't be able to see the full page in the DW if you use PHP include feature unless you view it in the browser. Still, if you want your code to be DW independent, php include is the way to go. I use DW, just to create a quick feel and look.

2) What is the advantage of using DWT rather than just copying the basic template and edit it?
For me, I don't directly use DWT that someone else create it. Rather I copy the basic template, chop it up into nice pieces to create my own DWT. At the end, DWT will save you some time for quick global changes.

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?
I would recommend getting DW book. Template is just 1 feature of the DW but there are even PHP support as well. Like pre-coded php sql libraries, table paging, and etc... But, if you're comfortable w/ PHP, even textpad is fine. I use DW cuz I already learned it.


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

Like you said, it can be done w/ php include, but you must use the browser to see the view. But, if you use DW then it'll show up in the design screen. Preference is upto you.

Any help is greatly appreciated.

Thanks.

Regards,
Dongan
noob78 is offline   Reply With Quote