Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
AndyXyz #1
PHP in nested templates
I am using nested templates with PHP.
When a user creates a new page in Contribute 3, it executes the PHP code in
the parent template and inserts the resulting html in the new page instead of
the original PHP code. The PHP code in the child template is inserted as PHP
code as expected. Creating new pages in Dreamweaver works fine.
Is there a way round this, or can?t I use PHP in nested templates with
Contribute?
Thanks,
Andy
AndyXyz 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... -
Please Fix Repeating Regions in Nested Templates
I am disappointed that repeating regions still do not work in nested templates in Dreamweaver 8. I believe it's probably common to use a repeating... -
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... -
Building a custom control with nested templates
Hi, I'm trying to create a templated custom asp.net server control with nested templates and I'm having some problems in getting the nesting to... -
Repeating regions and nested templates
I'm having some trouble with nested templates and repeating regions. I've searched this forum for answers, but all I could find were references to... -
phillyfantastic #2
Re: PHP in nested templates
Judging by all the forum replys, it sounds as if ASP includes/pages and
templates are the way to go. I had my entire site done as PHP includes/pages
and a php template and I got an Error 14 when I brought up a template page.
Like you said, it spits out the HTML, and doesn't load the include. Contribute
better work on that for their next update.
A-ron
phillyfantastic Guest
-
Robert (IT-FX) #3
Re: PHP in nested templates
I'm having the same problem. The php include for the navigation in contribute messes up all the links so they break and throw errors. If anyone know a fix then please tell us.
Robert (IT-FX) Guest
-
phillyfantastic #4
Re: PHP in nested templates
Robert I never found one... but I did change my PHP includes over to ASP includes & all ASP pages. Wasn't too hard to do, but it worked alot better in contribute (i did what it was suppose to do).
phillyfantastic Guest
-
Robert (IT-FX) #5
Re: PHP in nested templates
I was really annoyed with this issue so I went searching for a solution. I
thought someone must have documented a solution somewhere out there on the web
and sure enough after a hour or so and some testing it has fixed the issue. I
am using PHP but there are fixes for ASP, JSP, CFM etc
you can find the article at
[url]http://webdevblog.uwaterloo.ca/article/140/dreamweaver-8-changes-relative-link-m[/url]
anagement-in-templates-fix-is-here
Just is case the link breaks at a later date, I'll add an extract of the
article below that will point you in the right direction. Hope this helps save
someone else some time.
For includes
Without using template parameters:
Simply change double quotes to single quotes for include file path ? only
works for ASP and .NET templates
For example: <!--#include file='include.inc' <del>->.
Use template expression:
PHP: <?php include("@@('include.inc')@@"); ?>
CFM: <cfinclude template="@@('include.inc')@@">
JSP: <%@include file="@@('include.inc')@@" %>
ASP & .NET: <!</del>-#include file="@@('include.inc')@@" <del>->
(Note: include.inc is the real file path, not template parameters, so it has
to be quoted.)
Robert (IT-FX) Guest



Reply With Quote

