<div dir="ltr">Code posted to github issue log. <div><br></div><div>Here is the reference:</div><div><a href="https://github.com/alkacon/opencms-core/issues/197">https://github.com/alkacon/opencms-core/issues/197</a><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 14, 2013 at 11:55 PM, Christian Steinert <span dir="ltr"><<a href="mailto:christian@christian-steinert.de" target="_blank">christian@christian-steinert.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Dear Edwin<br>
<br>
If you have a fix that corrects the behavior then you can also
submit it as a patch to opencms on github.<br>
<br>
All the best<span class="HOEnZb"><font color="#888888"><br>
Christian<br>
</font></span></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Hi Christian,
<div><br>
</div>
<div>Thanks for your advice. I will give it a try with on demand
handler.</div>
<div><br>
</div>
<div>However, I want to disable the export feature ultimately as
the OpenCms will be used in a cluster environment (multiple
app server point to the same DB). Do not want resources export
to /export/.</div>
<div><br>
</div>
<div>I did the same way before. If you're interested in this
topic, you can refer to </div>
<div><a href="http://opencms.996256.n3.nabble.com/Can-different-installations-of-OpenCms-connect-to-the-same-db-schema-td22113.html#a22123" target="_blank">http://opencms.996256.n3.nabble.com/Can-different-installations-of-OpenCms-connect-to-the-same-db-schema-td22113.html#a22123</a></div>
<div><br>
</div>
<div>As a result, I modify the CmsStaticExportManger from 9.0
source codes.</div>
<div><br>
</div>
<div>I will post the changes here tomorrow.</div>
<div><br>
</div>
<div>Thanks</div>
<div>Edwin</div>
<div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">On Thu, Nov 14, 2013 at 9:13 PM,
Christian Steinert <span dir="ltr"><<a href="mailto:christian@christian-steinert.de" target="_blank">christian@christian-steinert.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Dear
Edwin<br>
<br>
I also observed that it creates problems in the
workplace if static export is completely disabled
because some workplace resources (mostly CSS files, it
seems) will not be accessed correctly anymore even if
they exist in the correct location.<br>
<br>
The best you can do is to set it to the "on demand"
handler which, I think, is also the default setting.
This will not cause any publish activity by the system
except when a page is requested that has not yet been
exported. So in a way, if you set the setting to "on
demand" then it will not do any harm and opencms will
then construct the correct URLs to also access the
statically exported workplace resources.<br>
<br>
All the best<br>
<span><font color="#888888">Christian<br>
</font></span>
<div>
<div><br>
> Hi All,<br>
><br>
> In OpenCms 7.5, it is easy to disable the
static export with setting<br>
> <staticexport enabled="false"> in
opencms-importexport.xml. It is no problem<br>
> with both demo and workplace.<br>
><br>
> However, in 9.0, I try to disable it in the
same way, the css or other<br>
> static resources path still pointing to
/export/.<br>
><br>
> Even I have tried to modify some configuration
inside <staticexport> tag,<br>
> but still fail.<br>
><br>
> Another observation is that I download the 9.0
source code, looking to the<br>
> manifest.xml in some core modules and found
that many workplace css or image<br>
> resources had a "export" properties with value
"true". I think this setting<br>
> maybe one of possibilities that causing
unexpected behavior in disabling the<br>
> static export.<br>
><br>
> So, can anyone can show me that how I can
disable the static export<br>
> properly. Below is my configuration so far.<br>
><br>
> <staticexport
<b>enabled="false"*><br>
><br>
>
<staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler</staticexporthandler><br>
><br>
>
<linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler><br>
>
<exportpath></exportpath><br>
>
<exportworkpath>temp</exportworkpath><br>
>
<exportbackups>2</exportbackups><br>
>
<defaultpropertyvalue>false</defaultpropertyvalue><br>
> <defaultsuffixes><br>
> <suffix key=".zip" /><br>
> <suffix key=".jpg"
/><br>
> <suffix key=".gif"
/><br>
> <suffix key=".png"
/><br>
> <suffix key=".doc"
/><br>
> <suffix key=".xls"
/><br>
> <suffix key=".ppt"
/><br>
> <suffix key=".pdf"
/><br>
> <suffix key=".txt"
/><br>
> <suffix key=".css"
/><br>
> <suffix key=".zip"
/><br>
> <suffix key=".swf"
/><br>
> </defaultsuffixes><br>
> <rendersettings><br>
>
*<rfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</rfs-prefix>*<br>
>
<vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix><br>
>
<userelativelinks>false</userelativelinks><br>
>
<exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl><br>
>
<plainoptimization>true</plainoptimization><br>
> <testresource
uri="/system/shared/page.dtd" /><br>
> <resourcestorender><br>
>
<regex>/sites/.*</regex><br>
>
<regex>/system/workplace/commons/style/.*</regex><br>
>
<regex>/system/galleries/.*</regex><br>
>
<regex>/system/modules/.*/resources/.*</regex><br>
>
</resourcestorender><br>
> </rendersettings><br>
> </staticexport><br>
><br>
> Thanks<br>
> Edwin<br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://opencms.996256.n3.nabble.com/Disable-Static-Export-Issue-tp23769.html" target="_blank">http://opencms.996256.n3.nabble.com/Disable-Static-Export-Issue-tp23769.html</a><br>
> Sent from the OpenCMS mailing list archive at
Nabble.com.<br>
> _______________________________________________<br>
> This mail is sent to you from the opencms-dev
mailing list<br>
> To change your list options, or to unsubscribe
from the list, please visit<br>
> <a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
><br>
><br>
><br>
><br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev
mailing list<br>
To change your list options, or to unsubscribe from
the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>