[opencms-dev] static export of path

Harish.Chakravarthy at sjsu.edu Harish.Chakravarthy at sjsu.edu
Fri Nov 5 20:47:54 CET 2004


Thanks Martin.

Creating a file of type "external" link, serves more like a symbolic link 
with the possibility of changing file properties.

My problem is, I have a regular .html file with content and a few link 
outside the OpenCMS tree. 

-Harish


Date: Fri, 05 Nov 2004 11:26:02 +0100
From: Martin Kuba <makub at ics.muni.cz>
Subject: Re: [opencms-dev] static export of path
To: The OpenCms mailing list <opencms-dev at opencms.org>
Message-ID: <418B553A.9040006 at ics.muni.cz>
Content-Type: text/plain; charset=us-ascii; format=flowed

Harish.Chakravarthy at sjsu.edu wrote:
> 
> Hello,
> 
> I need some help with static export of path. I am using OpenCMS 5final.
> 
> # Setting in opencms.properties
> staticexport.enabled=true
> staticexport.default.export=dynamic
> staticexport.path=/document_root/sites/mysite 
> # Content in mysite folder is managed using OpenCMS.
> # Other folders in sites folder are maintained outside OpenCMS.
> url_prefix_export=/sites/mysite
> url_prefix_http=/${WEB_APP_NAME}/opencms 
> 
> When I publish /welcome/index.html (properties for folder welcome are, 
> export=true;module_root=/welcome),
> a path like href="/contact/index.html" is rewritten as 
> href="/opencms/opencms/contact/index.html" if /contact is not
> present inside the OpenCMS tree (path is correctly rewritten, if 
> /contact is present in OpenCMS tree).
> 
> Is there a way to leave a path untouched ? - if not found inside OpenCMS 

> tree or unless explicitly quoted using tag like cms.link
> 
> Any pointers on how to handle this or work around, will be much 
appreciated.

You can create a file of type "external link" (at least in OpenCMS 6,
I don't have version 5 to check it now), which is inside OpenCMS tree
and can reference any URL outside.
So for example you can create an external link called 
/welcome/contact.html,
you can refence it as such, and the link can point to 
"/contact/index.html".

Martin

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub at ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041105/6b915a01/attachment.htm>


More information about the opencms-dev mailing list