Skip to main content
October 9, 2007
Answered

Help with updating site

  • October 9, 2007
  • 2 replies
  • 316 views
Thanks in advance to anyone who can help, I do appreciate it

I have a "static" site based on on html template created in dreamweaver cs3. I would like to add php functionality to it. is it possible to change the templates to php and therefore incude something like a "welcome "usernane" thanks for coming back" thoughout all the pages.

When I change the template document type to php I seem to loose the conections with the pages made from the template and the file name changes from a .dwt to .dwt.php.

So in the end can I change this site in one big swoop or do I need to rebuild it using new php based templates.


Monte
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Newsgroup_User
On Tue, 9 Oct 2007 08:17:17 -0500, "Katsuey"
<katsuey@removeitkatsuey.com> wrote:

>Can't change a template extension from .dwt and have it remain
>a template. You will have to change the individual page extensions.

Actually, a template for a PHP page will be .dwt.php. If renaming the
template in the site manager doesn't update the pages built from that
template, then you can do it with find and replace. Back up the site's
pages first. Then do a site-wide find and replace.

Search for /Templates/TemplateName.dwt

Replace with /Templates/TemplateName.dwt.php

After that, you may need to rebuild the site cache.

Gary

2 replies

Newsgroup_UserCorrect answer
Inspiring
October 9, 2007
On Tue, 9 Oct 2007 08:17:17 -0500, "Katsuey"
<katsuey@removeitkatsuey.com> wrote:

>Can't change a template extension from .dwt and have it remain
>a template. You will have to change the individual page extensions.

Actually, a template for a PHP page will be .dwt.php. If renaming the
template in the site manager doesn't update the pages built from that
template, then you can do it with find and replace. Back up the site's
pages first. Then do a site-wide find and replace.

Search for /Templates/TemplateName.dwt

Replace with /Templates/TemplateName.dwt.php

After that, you may need to rebuild the site cache.

Gary
Inspiring
October 9, 2007
Can't change a template extension from .dwt and have it remain
a template. You will have to change the individual page extensions.