Page 1 of 1

Using Dynamic Web Templates (DWT) with PHP

Posted: Tue Jun 14, 2005 5:09 am
by rdx65
Hi all.
I have created some web pages using MS FrontPage2003.
I created a template by using DWT in FrontPage.
Is it possible to use DWT with PHP?...how can I do it?

thanks.

Posted: Tue Jun 14, 2005 7:29 am
by hawleyjr
dwt is just a html file. You can insert your PHP the same way. The only difference is if you insert PHP in a non-editable area. all pages will have the php code in it.

Posted: Tue Jun 14, 2005 8:36 am
by malcolmboston
am i the only one who feels that the templating systems in dreamweaver and frontpage are pointless and somewhat overweight when you know PHP
generic_content.php wrote:

Code: Select all

$generic_footer = "Site design by <a href="http://www.somewhere.com">This company</a>";
normal_page.php wrote:

Code: Select all

<?php
require ("generic_content.php");
?>
<html>
<head>
<title>Some title</title>
</head>
<body>
<!-- blah blah blah, main content blah -->
<?php print $generic_footer; ?>
</body>
</html>
much easier and faster to change whole blocks of content at a later date, i use this method alot

Posted: Tue Jun 14, 2005 8:42 am
by neophyte
I've combined php and used Dreamweaver templating for an html solution before. It works quite nicely if you don't have a lot of dyanmic content.

Posted: Tue Jun 14, 2005 9:01 am
by hawleyjr
I've done quite a bit of dreamweaver/php templating. It works very well for me.