[opencms-dev] Static Export - export resources not exported if single files (OpenCms 7.0.3)
Andrea Puddu
andrea.puddu at tiscali.it
Fri Feb 1 10:50:10 CET 2008
Sure!
You can find the complete file below.
/A
Chauhan, Amit ha scritto:
> Andrea,
> Would it be possible for you to attach your opencms-importexport.xml file so we can take a look.
>
> Thanks
> Amit Chauhan
>
(cut)
----°°°----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE opencms SYSTEM "http://www.opencms.org/dtd/6.0/opencms-importexport.dtd">
<opencms>
<importexport>
<importexporthandlers>
<importexporthandler class="org.opencms.importexport.CmsVfsImportExportHandler"/>
<importexporthandler class="org.opencms.module.CmsModuleImportExportHandler"/>
</importexporthandlers>
<import>
<overwrite>true</overwrite>
<convert>true</convert>
<importversions>
<importversion class="org.opencms.importexport.CmsImportVersion2"/>
<importversion class="org.opencms.importexport.CmsImportVersion3"/>
<importversion class="org.opencms.importexport.CmsImportVersion4"/>
<importversion class="org.opencms.importexport.CmsImportVersion5"/>
<importversion class="org.opencms.importexport.CmsImportVersion6"/>
</importversions>
<immutables>
<resource uri="/system/"/>
<resource uri="/system/categories/"/>
<resource uri="/system/galleries/"/>
<resource uri="/system/galleries/download/"/>
<resource uri="/system/galleries/externallinks/"/>
<resource uri="/system/galleries/htmlgalleries/"/>
<resource uri="/system/galleries/pics/"/>
<resource uri="/system/login/"/>
<resource uri="/system/modules/"/>
<resource uri="/system/shared/"/>
<resource uri="/system/workplace/"/>
<resource uri="/system/workplace/admin/"/>
<resource uri="/system/workplace/help/"/>
<resource uri="/system/workplace/locales/"/>
<resource uri="/system/workplace/resources/"/>
<resource uri="/system/workplace/restypes/"/>
<resource uri="/system/workplace/scripts/"/>
<resource uri="/system/workplace/templates/"/>
<resource uri="/system/workplace/views/"/>
<resource uri="/sites/"/>
</immutables>
<principaltranslations/>
<ignoredproperties/>
</import>
</importexport>
<staticexport enabled="true">
<staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHandler </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=".pdf"/>
<suffix key=".txt"/>
<suffix key=".css"/>
<suffix key=".zip"/>
<suffix key=".swf"/>
</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/.*</regex>
<export-rules>
<export-rule>
<name>Specific rule for Business site and news</name>
<description>
It automatically publishes every change in the news area
</description>
<modified-resources>
<regex>/sites/business/home/news/.*</regex>
</modified-resources>
<export-resources>
<uri>/sites/business/rss_auto.html</uri>
</export-resources>
</export-rule>
</export-rules>
</resourcestorender>
</rendersettings>
</staticexport>
<usercsvexport>
<separator>;</separator>
<columns>
<column>description</column>
<column>lastname</column>
<column>firstname</column>
<column>email</column>
<column>address</column>
<column>zipcode</column>
<column>city</column>
<column>country</column>
<column>USERPREFERENCES_workplace-startupsettingssite</column>
<column>USERPREFERENCES_workplace-startupsettingslocale</column>
<column>password</column>
</columns>
</usercsvexport>
<repositories>
<repository name="standard" class="org.opencms.repository.CmsRepository">
<params>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlPage</param>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param>
</params>
<filter type="include">
<regex>/</regex>
<regex>/__properties/.*</regex>
<regex>/sites/.*</regex>
<regex>/system/</regex>
<regex>/system/__properties/.*</regex>
<regex>/system/galleries/.*</regex>
<regex>/system/modules/.*</regex>
<regex>/system/workplace/.*</regex>
</filter>
</repository>
<repository name="extended" class="org.opencms.repository.CmsRepository">
<params>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperXmlPage</param>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param>
</params>
<filter type="include">
<regex>/</regex>
<regex>/__properties/.*</regex>
<regex>/sites/.*</regex>
<regex>/system/</regex>
<regex>/system/__properties/.*</regex>
<regex>/system/galleries/.*</regex>
<regex>/system/modules/</regex>
<regex>/system/modules/[^/]*/</regex>
<regex>/system/modules/[^/]*/__properties/.*</regex>
<regex>/system/modules/[^/]*/resources/.*</regex>
</filter>
</repository>
</repositories>
</opencms>
More information about the opencms-dev
mailing list