CS3 does not update include paths like DW

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. #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...
    3. #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: ...
    4. 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...
    5. 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. ...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139