Using Dynamic Web Templates (DWT) with PHP

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
rdx65
Forum Newbie
Posts: 2
Joined: Tue Jun 14, 2005 5:02 am

Using Dynamic Web Templates (DWT) with PHP

Post 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.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post 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.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post 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
Last edited by malcolmboston on Tue Jun 14, 2005 8:43 am, edited 1 time in total.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post 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.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

I've done quite a bit of dreamweaver/php templating. It works very well for me.
Post Reply