Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
G_Monroe #1
CS3 does not update include paths like DW
I've got a template that has a JSP include in it, e.g.:
<%@include file="../code/pageInit.jsp" %>.
If I create a new page using DreamWeaver, this path gets updated to point to
the correct file. E.g. it become something like:
<%@include file="../../../../../code/pageInit.jsp" %>
Which works fine.
However, if I use Contribute to create a new page from the template. The path
stays as:
<%@include file="../code/pageInit.jsp" %>.
which fails because the file can't be found.
Is there any way to get Contribute to update these paths correctly?
FYI - This template is used across several web sites so just having an
absolute path doesn't work. Since it varies from site to site.
G_Monroe Guest
-
relative include paths? What's the use?
If I were to write an include with a relative path like include("../conf/config.php"); What is the use? As far as I understand it, the path... -
#40666 [NEW]: handling of relative paths in include()
From: mfr at bmx-chemnitz dot de Operating system: all PHP version: 5.2.1 PHP Bug Type: Feature/Change Request Bug... -
#39890 [NEW]: GNU layout and --sysconfdir option break install and include paths
From: gabriel at oxeva dot fr Operating system: Linux 2.6 PHP version: 5.2.0 PHP Bug Type: *Compile Issues Bug description: ... -
Contribute 3 rewrites PHP include relative paths!
I'm having the same problem, essentially. The DWT file has a path to an include, and in Dreamweaver when you create a new file from the Template, it... -
need general help with setting paths & man paths for apps
On Thu, 10 Jul 2003, solaris newbie wrote: That is one way, but a (perhaps) beter way would be to modify PATH in individual user's .profile. ... -
ThinkInk #2
Re: CS3 does not update include paths like DW
Maybe you can include the file you need in an include-file that Contribute will
find:
Include in Contribute:
<%@include file="../code/GetPageInit.jsp" %>
Include in GetPageInit.jsp:
<%@include file="../../../../../code/pageInit.jsp" %>
(in PHP this will work fine to my knowledge, but I don't know for sure with
JSP)
ThinkInk Guest
-
G_Monroe #3
Re: CS3 does not update include paths like DW
That would probably work but, if I understand your solution correctly, this
still requires there to be a specific file in a specific location relative to
where the new page is being created.
Templates should be independent of the directory the page is being created in.
E.g., if a Contribute user creates a new directory under an existing directory
and then creates a new page from a template or copies a page from the parent
directory, they should not have to worry about any dependancies, like images,
links, and include files... DreamWeaver manages this nicely, but Contribute
doesn't seem to.
G_Monroe Guest
-
ThinkInk #4
Re: CS3 does not update include paths like DW
You are quite right, and I did not think this through properly. Sorry for the
bad answer.
This is often a problem using includes and Contribute, that's why I sometimes
use absolute paths or multiple templates with only minor differences.
ThinkInk Guest



Reply With Quote

