[opencms-dev] static export prefix in 5.3.5

Alexander Kandzior alex at opencms.org
Fri Jun 25 16:42:02 CEST 2004


> What should be the proper setting
> for exporting files so that a link to a VFS file 
> "/sites/mysite/file.html" would be in the exported
> pages "/file.html" ?

That's not possible. Use the relative link setting when you don't want "full
site path" information. Make sure you delete everything in the folder before
exporting. If the relative links setting does not produce relative links
then either your configuration is wrong, or some bug has crept in in the
last dev version.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com


> Alexander Kandzior wrote:
> > Static export configuration has not yet been moved to XML 
> > configuration, this is on the TODO list for the 6 release.
> > 
> > Check in opencms.properties:
> > 
> > # The rfs prefix is used when writing the static resources to the 
> > "real" file system # The vfs prefix defines the context 
> prefix for the 
> > OpenCms VFS staticexport.prefix_rfs=${CONTEXT_NAME}/export
> > staticexport.prefix_vfs=${CONTEXT_NAME}${SERVLET_NAME}
> > 
> > # Controls if the links in the static exported pages should 
> be written 
> > as # absolute or relative links staticexport.relative_links=false
> > 
> > For best results use "relative_links=true".
> > 
> > Best Regards,
> > Alex.
> > 
> > Alexander Kandzior
> > Alkacon Software - The OpenCms Experts
> > http://www.alkacon.com
> > 
> > 
> >>-----Original Message-----
> >>From: opencms-dev-admin at opencms.org
> >>[mailto:opencms-dev-admin at opencms.org] On Behalf Of Martin Kuba
> >>Sent: Friday, June 25, 2004 2:17 PM
> >>To: opencms-dev at opencms.org
> >>Subject: [opencms-dev] static export prefix in 5.3.5
> >>
> >>
> >>Hi,
> >>
> >>in the stable version 5.0, there was a setting
> >>"flex.jsp.exporturl" in the opencms.properties, but I don't 
> >>see it in version 5.3.5. There is a new file 
> >>opencms-importexport.xml but there seems to be no replacement 
> >>of that. What I want is to replace the beginning of URLs of 
> >>exported pages like
> >>
> > 
> > http://www.mysite.cz/opencms/export/sites/mysite/file.html
> > 
> > with shorter
> > 
> > http://www.mysite.cz/file.html
> > 
> > How can I do that in 5.3.5 ?
> > 
> > Thanks for any answer.
> > 
> > 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
> --------------------------------------------------------------
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> 




More information about the opencms-dev mailing list