<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: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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";
mso-fareast-language:DE;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:508328360;
mso-list-type:hybrid;
mso-list-template-ids:1990225026 67567631 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Zoltan,<o:p></o:p></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:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><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.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><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”.<o:p></o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">HTH<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Kai<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></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""> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]
<b>Im Auftrag von </b>DZoltan<br>
<b>Gesendet:</b> Montag, 8. September 2014 15:49<br>
<b>An:</b> The OpenCms mailing list<br>
<b>Betreff:</b> Re: [opencms-dev] Full static export<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Kai thanks for the response,<o:p></o:p></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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">JSPs, structured contents and container pages were not exported.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Is there something missing? should I add something to the suffixes (what about pages without suffix?) ?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">this is the current config:<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><staticexport enabled="true"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHandler</staticexporthandler><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <exportpath>export</exportpath><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <exportworkpath>temp</exportworkpath><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <exportbackups>2</exportbackups><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <defaultpropertyvalue>false</defaultpropertyvalue><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <defaultsuffixes><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".woff" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".ttf" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".svg" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".jpg" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".gif" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".png" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".doc" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".xls" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".ppt" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".pdf" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".txt" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".css" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".zip" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".swf" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <suffix key=".js" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </defaultsuffixes><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <rendersettings><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <userelativelinks>false</userelativelinks><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <exporturl><a href="http://127.0.0.1:8081$%7bCONTEXT_NAME%7d/handle404%3c/exporturl">http://127.0.0.1:8081${CONTEXT_NAME}/handle404</exporturl</a>><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <plainoptimization>true</plainoptimization><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <testresource uri="/system/shared/page.dtd" /><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <resourcestorender><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <regex>/sites/.*</regex><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <regex>/system/workplace/commons/style/.*</regex><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <regex>/system/galleries/.*</regex><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <regex>/system/modules/.*/resources/.*</regex><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </resourcestorender><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </rendersettings><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"></staticexport><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best regards</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Kai</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Is there a way to create a snapshot/dump of the site including container pages (assuming the content is fixed and not user generated)?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">is it possible? did anyone have experience with such thing?<o:p></o:p></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>
<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>