This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > December 2005 > PHP Template Question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PHP Template Question
breesha

2005-12-13, 10:48 pm

How do I create a .php template from an .dwt template and how do I recreate the
..htm pages that were originally created using the .dwt template so they will
update properly using .php?

I created a site using DreamWeaver and am now working with a programmer who is
implementing the PHP and MySql. All the files I had created are .htm extensions
and the templates are .dwt.

The problem I am seeing is that the templates are not updating the new PHP
pages. I believe this is because the programmer is simply duplicating the page
that was made from the .dwt template and changing the extension from .htm to
..php. My guess is the template does not recognize the new page with the .php
extension.

When looking at DreamWeaver it appears that one can choose to create PHP
templates and they are different from regular .htm templates. I want all pages
to update using the templates. How do I convert the .dwt template pages to .php
templates? I will also need the .htm pages that were originally created from
the .dwt templates to be converted to .php pages connected to the templates.

I did my best to explain the situation.


Osgood

2005-12-13, 11:02 pm

breesha wrote:

> How do I create a .php template from an .dwt template and how do I recreate the
> .htm pages that were originally created using the .dwt template so they will
> update properly using .php?



You should just be able to change the .htm extention to .php then any
changes you make in the .dwt file will be reflected in the .php file.

That's how it works for me.

I get a list to prompt me to update

file1.htm
file2.htm
file1.php
file2.php

Obviously the htm files don't exist anymore in the site root folder. I
click update and all the change made in the template .dwt file now show
in the PHP files.

Murray *TMM*

2005-12-13, 11:02 pm

> My guess is the template does not recognize the new page with the .php
> extension.


That's not correct. I frequently use the method your programmer is using,
i.e., spawn a single child, save it with a bunch of different names, and
then go back and add unique content. It works fine.

> When looking at DreamWeaver it appears that one can choose to create PHP
> templates and they are different from regular .htm templates.


Only in name. There are no other differences.

> How do I convert the .dwt template pages to .php
> templates?


You could do this two ways -

1. Do nothing. Spawn a child page, add the PHP markup to it, and save it
with a PHP extension.
2. Use DW's file manager to change the name of the template from "foo.dwt"
to "foo.dwt.php", so that this change is managed in all of the child pages

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"breesha" <webforumsuser@macromedia.com> wrote in message
news:dnmcb1$d5e$1@forums.macromedia.com...
> How do I create a .php template from an .dwt template and how do I
> recreate the
> .htm pages that were originally created using the .dwt template so they
> will
> update properly using .php?
>
> I created a site using DreamWeaver and am now working with a programmer
> who is
> implementing the PHP and MySql. All the files I had created are .htm
> extensions
> and the templates are .dwt.
>
> The problem I am seeing is that the templates are not updating the new PHP
> pages. I believe this is because the programmer is simply duplicating the
> page
> that was made from the .dwt template and changing the extension from .htm
> to
> .php. My guess is the template does not recognize the new page with the
> .php
> extension.
>
> When looking at DreamWeaver it appears that one can choose to create PHP
> templates and they are different from regular .htm templates. I want all
> pages
> to update using the templates. How do I convert the .dwt template pages to
> .php
> templates? I will also need the .htm pages that were originally created
> from
> the .dwt templates to be converted to .php pages connected to the
> templates.
>
> I did my best to explain the situation.
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews