Professional Web Applications Themes

Images using absolute links - Macromedia Contribute General Discussion

I have users using Contribute for simple content management, only allowing copy changes and to insert images. I am having a problem in that when a user selects an image from the website, it places an absolute URL in the href tag. This is problematic in that the site will be moved to a different URL and these links will be broken. The images are located in the default folder (images) and that is reflected in the role settings. It seems the only way for it to correctly insert a relative url would be to manually edit the URL and ...

  1. #1

    Default Images using absolute links

    I have users using Contribute for simple content management, only allowing copy
    changes and to insert images. I am having a problem in that when a user
    selects an image from the website, it places an absolute URL in the href tag.
    This is problematic in that the site will be moved to a different URL and these
    links will be broken.

    The images are located in the default folder (images) and that is reflected in
    the role settings. It seems the only way for it to correctly insert a relative
    url would be to manually edit the URL and remove the http:/www.example.com/
    part from the file name in the image properties applet, which is not a feasible
    solution for these non-technical users.

    Is there another way to configure contribute such that relative urls will be
    used when in the same site?

    Thanks!



    GarryCT Guest

  2. #2

    Default Re: Images using absolute links

    Hi Garry,

    In order to set the links as site root relative or doent relative,one can
    do the following.

    1. Go to Administer Website -> <website name>
    2. Go to the Links option in the left pane
    3. Select the type of insertion of links.

    Please note that this setting will be applied globally.
    If you are inserting images from computer/website(belonging to the same
    domain) then the settings are applied. If images are being inserted from
    internet or a different website/domain, absolute paths are used.

    For example,

    Domain - server1

    Links with site root relative option set, image from same domain.
    <img src="/chan1/images/Ixia.gif" width="50" height="50" />

    Links with doent relative option set, image from same domain.
    <img src="images/flower1.jpg" width="137" height="107" /></p>

    Links inserted from another domain (server2), settings are ignored.

    <img src="http://<server2>/test/images/Orange.gif"width="48" height="48" />

    Please let me know if this helps,

    Thanks,
    Radhika

    radsraman Guest

  3. #3

    Default Re: Images using absolute links

    Hi Radhika,

    Which version of Contribute are you referring to that has this option?

    Thanks, ThinkInk
    ThinkInk Guest

  4. #4

    Default Re: Images using absolute links

    Hi Radhika,

    Do you know whether that option is only available in CS4? I have CS3 and
    there is no links option available in the left pane. Do you know of a method
    to do this in CS3? It's hard to believe that Adobe/Macromedia would allow this
    kind of defect to get through.

    Thanks for your reply!

    GarryCT Guest

  5. #5

    Default Re: Images using absolute links

    H
    radsraman Guest

  6. #6

    Default Re: Images using absolute links

    Hi Garry.

    Yes,the links option is available in CS4. In CS3, when an image is inserted
    from the same domain (web server) then links are written as doent relative.
    When the image is being inserted from a different domain then absolute path
    comes in to picture. Please confirm if you are inserting image from the same
    domain or from a different domain.

    Thanks,
    Radhika

    radsraman Guest

  7. #7

    Default Re: Images using absolute links

    Hi Radhika,

    This happens when a user imports an image from their own computer to the
    website. The image does end up in the images folder (specified as the
    default), but the src tag gives the full domain. If they specify an image that
    is already on the site, it uses relative links. One solution could be, I
    suppose, for me to upload the images beforehand, but I would rather the users
    do that so I don't become a bottleneck

    One caveat is that the site does not reside in the website root. It is in
    http://www.example.com/site-name. It is designed there and then deployed later
    to http://www.site-name.com, wherein lies the problem. I will have to do a
    global find & replace before deploying to get rid of the absolute ufl, which I
    am trying to avoid.
    I don't know if that is an issue, but that is one place where the design
    slightly deviates from the norm.

    Thanks!
    Garry

    GarryCT Guest

Similar Threads

  1. C4 Absolute links - completely useless
    By PaulJMurphy in forum Macromedia Contribute General Discussion
    Replies: 3
    Last Post: November 12th, 01:42 PM
  2. Absolute Links in Contribute 4
    By Marje in forum Macromedia Contribute General Discussion
    Replies: 4
    Last Post: October 11th, 05:51 AM
  3. Absolute Links
    By Marje in forum Macromedia Contribute General Discussion
    Replies: 5
    Last Post: September 8th, 08:11 PM
  4. Absolute links and session variables
    By steel_quill in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: August 22nd, 10:14 PM
  5. absolute links with SSL
    By aboms_webgurl in forum Dreamweaver AppDev
    Replies: 2
    Last Post: March 2nd, 05:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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