<div dir="ltr">Perfect thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 8, 2014 at 5:08 PM, Schliemann, Kai <span dir="ltr"><<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Zoltan,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">you have two choices for getting all resources exported:<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>1.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Change <defaultpropertyvalue><b>false</b></defaultpropertyvalue> to <defaultpropertyvalue><b>true</b></defaultpropertyvalue><br>
this means, that all resources defined in <resourcestorender> get statically exported by default. Only if you set the property “export” to “false” a resource (and its children) do not get exported.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>2.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Set the property “export” to “true” on any folder, you wish to get statically exported (e.g. /sites/yoursite/ and your module resources) 
 - and leave <defaultpropertyvalue> set to “false”.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The defaultsuffixes ignore the setting of defaultpropertyvalue, so files with these extensions get exported anyway. You could stop that by setting
 the export property of remove an extension from this setting.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If you want to create a snapshot of your site to copy it to some other place you can use CmsAfterPublishStaticExportHandler. For a production system
 I would recommend the CmsOnDemandStaticExportHandler because CmsAfterPublishStaticExportHandler causes heavy load after each publishing process.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">HTH<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best regards<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kai<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>]
<b>Im Auftrag von </b>DZoltan<br>
<b>Gesendet:</b> Montag, 8. September 2014 15:49<span class=""><br>
<b>An:</b> The OpenCms mailing list<br>
</span><b>Betreff:</b> Re: [opencms-dev] Full static export<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Kai thanks for the response,<u></u><u></u></p>
<div>
<p class="MsoNormal">I tried to define the static export as by the link you sent me but it only exported the static resources such as css and images.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">JSPs, structured contents and container pages were not exported.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Is there something missing? should I add something to the suffixes (what about pages without suffix?) ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">this is the current config:<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><staticexport enabled="true"><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHandler</staticexporthandler><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <exportpath>export</exportpath><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <exportworkpath>temp</exportworkpath><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <exportbackups>2</exportbackups><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <defaultpropertyvalue>false</defaultpropertyvalue><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <defaultsuffixes><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".woff" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".ttf" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".svg" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".jpg" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".gif" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".png" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".doc" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".xls" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".ppt" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".pdf" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".txt" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".css" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".zip" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".swf" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <suffix key=".js" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            </defaultsuffixes><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <rendersettings><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <userelativelinks>false</userelativelinks><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <exporturl><a href="http://127.0.0.1:8081$%7bCONTEXT_NAME%7d/handle404%3c/exporturl" target="_blank">http://127.0.0.1:8081${CONTEXT_NAME}/handle404</exporturl</a>><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <plainoptimization>true</plainoptimization><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <testresource uri="/system/shared/page.dtd" /><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <resourcestorender><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                                   <regex>/sites/.*</regex><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                                   <regex>/system/workplace/commons/style/.*</regex><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                                   <regex>/system/galleries/.*</regex><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                                   <regex>/system/modules/.*/resources/.*</regex><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        </resourcestorender><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            </rendersettings><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"></staticexport><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Sep 8, 2014 at 3:59 PM, Schliemann, Kai <<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">yes, it is:
<a href="http://www.opencms-wiki.org/wiki/Static_Export" target="_blank">http://www.opencms-wiki.org/wiki/Static_Export</a></span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best regards</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kai</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>]
<b>Im Auftrag von </b>DZoltan<br>
<b>Gesendet:</b> Montag, 8. September 2014 14:45<br>
<b>An:</b> The OpenCms mailing list<br>
<b>Betreff:</b> [opencms-dev] Full static export</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal">I am looking for a way to export the entire site to static files on the disk and not only the static files like CSS and images.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Is there a way to create a snapshot/dump of the site including container pages (assuming the content is fixed and not user generated)?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">It will be best if the export can happen on publish so when a new container page is created with a content linked to it, there will be a static version of the page already rendered.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">is it possible? did anyone have experience with such thing?<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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>
<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></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>