[opencms-dev] static export of path

Martin Kuba makub at ics.muni.cz
Fri Nov 5 11:26:02 CET 2004


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
--------------------------------------------------------------



More information about the opencms-dev mailing list