<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-GB>Hello, <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Ive a problem with <cms:link> tag.
This code: <o:p></o:p></span></p>
<p class=MsoNormal><b><span lang=EN-GB><cms:link></span></b><span
lang=EN-GB>/myDocuments/whatever.doc<b></cms:link></b> or this
other (same behaviour I believe): out.println(<b>actionElement.link</b>("/myDocuments/whatever.doc
"));<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Gives this html code in the Online project:
<a href=”<b>/export/sites/intranet/</b>myDocuments/whatever.doc”
... /> (This works ok)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>And this in the Offline project: <a
href=”/myDocuments/whatever.doc” ...
/>
(this doesn’t work!)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>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. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Xabi <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>(My opencms-importexport.xml file says:)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>...<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-GB><staticexport
enabled="true"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler</staticexporthandler><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler>
<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<exportpath>export</exportpath><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<exportworkpath>temp</exportworkpath><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<exportbackups>2</exportbackups><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<defaultpropertyvalue>false</defaultpropertyvalue><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<defaultsuffixes><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".jpg"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".gif"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".png"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".doc"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".xls"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".ppt"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".pdf"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".txt"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".css"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".zip"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<suffix key=".swf"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
</defaultsuffixes><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<rendersettings><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<vfs-prefix>${CONTEXT_NAME}</vfs-prefix><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<userelativelinks>false</userelativelinks>
<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<exporturl><a
href="http://127.0.0.1:8180$%7bCONTEXT_NAME%7d/handle404%3c/exporturl">http://127.0.0.1:8180${CONTEXT_NAME}/handle404</exporturl</a>><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<plainoptimization>true</plainoptimization><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<testresource uri="/system/shared/page.dtd"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<resourcestorender><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<regex>/sites/.*</regex><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<regex>/system/workplace/commons/style/.*</regex><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<regex>/system/galleries/.*</regex><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<regex>/system/modules/.*/resources/.*</regex><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
</resourcestorender><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
</rendersettings><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
</staticexport><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>...<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>