Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
buttercupnli #1
php and templates
we have gotten a page from an outside developer who works in php. i need to
turn her sample page into a dreamweaver template. however, it looks as though
when i make a page from template that some of the file paths are changed so
that the related files cannot be located by the browser.
for example
my template code:
<?php
$pageTitle = "Title";
$additionalKeyWords = "";
$addtionalDescription ="";
$updateDate = "July 7, 2006";
include('includes/components.php');
echo $pageHeader;
?>
the page code on page made from template
<!-- InstanceBegin template="/Templates/page.dwt.php"
codeOutsideHTMLIsLocked="false" --><?php
$pageTitle = "Title";
$additionalKeyWords = "";
$addtionalDescription ="";
$updateDate = "July 7, 2006";
include('Templates/includes/components.php');
echo $pageHeader;
?>
how should i be approaching this?
thank you
buttercupnli Guest
-
Libraries, Templates, Nested Templates, Repeat Regions,
Hi I have eight categories to display in my site navigation. Each category has at least one (some have two) levels of subcategories. For example... -
No Templates
Hello, My problem is that I have no templates in Contribute 3.0. I have tried whit but no result. Can I download all the templates or have... -
Issues with templates and nested templates
Hello, I hope there is someone out there that can help me. I created a website using 1 main template and several nested templates. Everything... -
PHP Templates
i need to place a block of PHP code at the start of every page - BEFORE anything & everything; otherwise i get the infamous 'headers already sent'.... -
Dreameaver Templates Applide to Templates?
Hello, I was updating pages using templates today and I found that I had to create several templates to cover different styles of pages. There... -
Murray *ACE* #2
Re: php and templates
A template cannot contain a link like this -
include('includes/components.php');
since it implies that the include file is *in* the Templates folder, and you
should never have anything in the Templates folder other than the templates
themselves.
If this file is in the Templates folder, please use DW's Files panel to move
it somewhere else. If it's not in the Templates folder, then please convert
this link to a root relative link rather than a document relative link.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"buttercupnli" <webforumsuser@macromedia.com> wrote in message
news:ea32pi$flk$1@forums.macromedia.com...> we have gotten a page from an outside developer who works in php. i need
> to
> turn her sample page into a dreamweaver template. however, it looks as
> though
> when i make a page from template that some of the file paths are changed
> so
> that the related files cannot be located by the browser.
>
> for example
>
> my template code:
> <?php
> $pageTitle = "Title";
> $additionalKeyWords = "";
> $addtionalDescription ="";
> $updateDate = "July 7, 2006";
> include('includes/components.php');
> echo $pageHeader;
> ?>
>
>
> the page code on page made from template
> <!-- InstanceBegin template="/Templates/page.dwt.php"
> codeOutsideHTMLIsLocked="false" --><?php
> $pageTitle = "Title";
> $additionalKeyWords = "";
> $addtionalDescription ="";
> $updateDate = "July 7, 2006";
> include('Templates/includes/components.php');
> echo $pageHeader;
> ?>
>
> how should i be approaching this?
>
> thank you
>
>
Murray *ACE* Guest



Reply With Quote

