Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help with updating site

Guest
Oct 09, 2007 Oct 09, 2007
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
TOPICS
Server side applications
308
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 09, 2007 Oct 09, 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 /Templat...
Translate
LEGEND ,
Oct 09, 2007 Oct 09, 2007
Can't change a template extension from .dwt and have it remain
a template. You will have to change the individual page extensions.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 09, 2007 Oct 09, 2007
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines