[opencms-dev] OpenCms 9.5.2: static export exports index.html as index_export.html

Schliemann, Kai K.Schliemann at comundus.com
Tue Jan 12 18:17:26 CET 2016


Hi list,
I am using static export in database management of OpenCms.
All files are exported correctly but all index.html files are exported twice. As index.html and index_export.html.
All files are xmlpages.

Can anybody tell me how I can avoid the duplicate export of the index.html files?

Here are my settings for static export in opencms-import-export.xml:

        <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=".docx" />
                       <suffix key=".xlsx" />
                        <suffix key=".pptx" />
                        <suffix key=".pdf" />
                        <suffix key=".txt" />
                        <suffix key=".css" />
                        <suffix key=".zip" />
                        <suffix key=".swf" />
                        <!-- added -->
                        <suffix key=".html"/>
                        <suffix key=".csv"/>
                </defaultsuffixes>
                <rendersettings>
                        <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
                        <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>
                        <userelativelinks>true</userelativelinks>
                        <exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl>
                        <plainoptimization>true</plainoptimization>
                        <testresource uri="/system/shared/page.dtd" />
                        <resourcestorender>
                                <regex>/sites/site1/.*</regex>
                                <regex>/sites/site2/.*</regex>
                                <regex>/system/galleries/.*/folder1/.*</regex>
                                <regex>/system/galleries/.*/folder2/.*</regex>
                                <regex>/system/modules/de.my.module.internet/resources/.*</regex>
                        </resourcestorender>
                </rendersettings>
        </staticexport>

Thanks for your help in advance.
Best regards
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160112/7d21d3d0/attachment.htm>


More information about the opencms-dev mailing list