<br><font size=2><tt>Thanks Martin.</tt></font>
<br>
<br><font size=2><tt>Creating a file of type "external" link,
serves more like a symbolic link with the possibility of changing file
properties.</tt></font>
<br>
<br><font size=2><tt>My problem is, I have a regular .html file with content
and a few link outside the OpenCMS tree. </tt></font>
<br>
<br><font size=2><tt>-Harish</tt></font>
<br>
<br>
<br><font size=2><tt>Date: Fri, 05 Nov 2004 11:26:02 +0100<br>
From: Martin Kuba <makub@ics.muni.cz><br>
Subject: Re: [opencms-dev] static export of path<br>
To: The OpenCms mailing list <opencms-dev@opencms.org><br>
Message-ID: <418B553A.9040006@ics.muni.cz><br>
Content-Type: text/plain; charset=us-ascii; format=flowed<br>
<br>
Harish.Chakravarthy@sjsu.edu wrote:<br>
> <br>
> Hello,<br>
> <br>
> I need some help with static export of path. I am using OpenCMS 5final.<br>
> <br>
> # Setting in opencms.properties<br>
> staticexport.enabled=true<br>
> staticexport.default.export=dynamic<br>
> staticexport.path=/document_root/sites/mysite <br>
> # Content in mysite folder is managed using OpenCMS.<br>
> # Other folders in sites folder are maintained outside OpenCMS.<br>
> url_prefix_export=/sites/mysite<br>
> url_prefix_http=/${WEB_APP_NAME}/opencms <br>
> <br>
> When I publish /welcome/index.html (properties for folder welcome
are, <br>
> export=true;module_root=/welcome),<br>
> a path like href="/contact/index.html" is rewritten as <br>
> href="/opencms/opencms/contact/index.html" if /contact is
not<br>
> present inside the OpenCMS tree (path is correctly rewritten, if <br>
> /contact is present in OpenCMS tree).<br>
> <br>
> Is there a way to leave a path untouched ? - if not found inside OpenCMS
<br>
> tree or unless explicitly quoted using tag like cms.link<br>
> <br>
> Any pointers on how to handle this or work around, will be much appreciated.<br>
<br>
You can create a file of type "external link" (at least in OpenCMS
6,<br>
I don't have version 5 to check it now), which is inside OpenCMS tree<br>
and can reference any URL outside.<br>
So for example you can create an external link called /welcome/contact.html,<br>
you can refence it as such, and the link can point to "/contact/index.html".<br>
<br>
Martin<br>
<br>
-- <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Supercomputing Center Brno Martin
Kuba<br>
Institute of Computer Science email: makub@ics.muni.cz<br>
Masaryk University http://www.ics.muni.cz/~makub/<br>
Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775<br>
--------------------------------------------------------------</tt></font>