[opencms-dev] cms:link issue in offline project

Legasa Xabier Xabier.Legasa at panoptic.biz
Thu Jan 14 16:24:04 CET 2010


Hello,

Ive a problem with <cms:link> tag. This code:
<cms:link>/myDocuments/whatever.doc</cms:link>  or this other (same behaviour I believe): out.println(actionElement.link("/myDocuments/whatever.doc "));

Gives this html code in the Online project:         <a href="/export/sites/intranet/myDocuments/whatever.doc" ... />         (This works ok)
And this in the Offline project:                                 <a href="/myDocuments/whatever.doc" ... />                               (this doesn't work!)

Am I right if I say that both links should be equal in offline and in online project ? And if so, please, any tips around this behaviour or how to fix it would be really appreciated.

Thanks,
Xabi

(My opencms-importexport.xml file says:)
...
<staticexport enabled="true">
                                <staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler</staticexporthandler>
                                <linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler>
                               <exportpath>export</exportpath>
                               <exportworkpath>temp</exportworkpath>
                               <exportbackups>2</exportbackups>
                               <defaultpropertyvalue>false</defaultpropertyvalue>
                               <defaultsuffixes>
                                               <suffix key=".jpg"/>
                                               <suffix key=".gif"/>
                                               <suffix key=".png"/>
                                               <suffix key=".doc"/>
                                               <suffix key=".xls"/>
                                               <suffix key=".ppt"/>
                                               <suffix key=".pdf"/>
                                               <suffix key=".txt"/>
                                               <suffix key=".css"/>
                                               <suffix key=".zip"/>
                                               <suffix key=".swf"/>
                               </defaultsuffixes>
                               <rendersettings>
                                               <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
                                               <vfs-prefix>${CONTEXT_NAME}</vfs-prefix>
                                               <userelativelinks>false</userelativelinks>
                                               <exporturl>http://127.0.0.1:8180${CONTEXT_NAME}/handle404</exporturl<http://127.0.0.1:8180$%7bCONTEXT_NAME%7d/handle404%3c/exporturl>>
                                               <plainoptimization>true</plainoptimization>
                                               <testresource uri="/system/shared/page.dtd"/>
                                               <resourcestorender>
                                                               <regex>/sites/.*</regex>
                                                               <regex>/system/workplace/commons/style/.*</regex>
                                                               <regex>/system/galleries/.*</regex>
                                                               <regex>/system/modules/.*/resources/.*</regex>
                                               </resourcestorender>
                               </rendersettings>
                </staticexport>
...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100114/69abc608/attachment.htm>


More information about the opencms-dev mailing list