[opencms-dev] link issue in OpenCms 8.0.1

Raghu D Raghu.Devaraj at ibsplc.com
Thu Aug 4 13:29:44 CEST 2011


Hi Micheal,

        Thank you for your response. 

        Actually we upgraded the OpenCms from 7.5.2 to 8.0.1 . The link is 
working fine before the upgrade .However after upgraded to 8.0.1 only , we 
are facing this issue. Also , we compared the OpenCms xml files used in 
7.5.2 and 8.0.1 and it seems all the files are identical. Could you please 
advise whether we need to modify any entries in the OpenCms xml files.

Thanks and Regards,

Raghu D 






From:   Michael Emmerich <m.emmerich at alkacon.com>
To:     The OpenCms mailing list <opencms-dev at opencms.org>
Date:   08/04/2011 01:02 PM
Subject:        Re: [opencms-dev] link issue in OpenCms 8.0.1
Sent by:        opencms-dev-bounces at opencms.org



Raghu,

for performance reasons, OpenCms automatically exports binary files 
(images, pdf, office docs) when being in the ONLINE project.

So if your file is stored in the VFS at "/IN/hotel/TajHotel.pdf", the 
URL for it will be (in a default OpenCms installation)

Offline: http://[servername]/opencms/opencms/IN/hotel/TajHotel.pdf
Online: 
http://[servername]/opencms/export/sites/default/IN/hotel/TajHotel.pdf

It is required that you use the <cms:link> tag in every link you program 
in your JSPs, so that OpenCms can modify the links correctly.

So every link in a jsp should be like

<a href="<cms_link>some_link_in_opencms</cms:link>">Link</a>

and NOT

<a href="some_link_in_opencms">Link</a>

If you do not want to have binary files exported, you can set the 
"export" property on those files (or the parent folder) to "false"


Kind Regards,
Michael.


> Hi ,
> In our application, a link is given as <a
> href="/cms/IN/hotel/TajHotel.pdf"/> in the OpenCms html page. However,
> when the page loads , the link is shown as <a
> href="/export/sites/default/IN/hotel/ TajHotel.pdf"/>. Could anyone
> please advise the reason for the issue.
>
>
> Thanks and Regards,
> *Raghu D*
>
>
>
>
>
>
>
>
> DISCLAIMER:
>
> "The information in this e-mail and any attachment is intended only for
> the person to whom it is addressed and may contain confidential and/or
> privileged material. If you have received this e-mail in error, kindly
> contact the sender and destroy all copies of the original communication.
> IBS makes no warranty, express or implied, nor guarantees the accuracy,
> adequacy or completeness of the information contained in this email or
> any attachment and is not liable for any errors, defects, omissions,
> viruses or for resultant loss or damage, if any, direct or indirect."
>
>
>
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please 
visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev

-- 
Kind Regards,
Michael.

-------------------
Michael Emmerich

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev







DISCLAIMER: 

"The information in this e-mail and any attachment is intended only for 
the person to whom it is addressed and may contain confidential and/or 
privileged material. If you have received this e-mail in error, kindly 
contact the sender and destroy all copies of the original communication. 
IBS makes no warranty, express or implied, nor guarantees the accuracy, 
adequacy or completeness of the information contained in this email or any 
attachment and is not liable for any errors, defects, omissions, viruses 
or for resultant loss or damage, if any, direct or indirect."




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110804/22aedbf6/attachment.htm>


More information about the opencms-dev mailing list