[opencms-dev] isssue with after publish static export
Stefano Crespi
screspi at etnoteam.it
Thu Jul 31 09:30:13 CEST 2008
Hi all,
I have an issue with static export with opencms 7.0.4
I have configured static export for "incremental" export using after publish
and a set of export rules.
All works fine but, when publishing something under
/sites/187/section2/news/ all was exported but not the site home page as
declared in export resource.
Export rule involved was:
<export-rule>
<name>187.section2.news</name>
<description> publishing
resources in section2/news export section2/news/, rss and site home
page</description>
<modified-resources>
<regex>/sites/187/section2/news/.*</regex>
</modified-resources>
<export-resources>
<uri>/sites/187/index.html</uri>
<uri>/sites/187/section2/news/</uri>
<uri>/sites/187/rss/</uri>
</export-resources>
</export-rule>
Doing a full static export via administration console, opencms export all
and homepage too!
Some idea about this behiavour?
Rule look like that appears in opencms documentation and examples.
Thank you in advance, Stefano.
Full opencms-importexport.xml was:
<?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"/>
<importversion
class="org.opencms.importexport.CmsImportVersion7"/>
</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.CmsOnDemandStaticExportHandler<
/staticexporthandler -->
<staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHan
dler</staticexporthandler>
<linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitution
Handler</linksubstitutionhandler>
<exportpath>export</exportpath>
<exportworkpath>temp</exportworkpath>
<exportbackups>10</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"/>
-->
<suffix key=".*"/>
</defaultsuffixes>
<rendersettings>
<rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
<vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>
<userelativelinks>true</userelativelinks>
<exporturl>http://be.tuo.telecomitalia.local${CONTEXT_NAME}/handle404</expor
turl>
<plainoptimization>true</plainoptimization>
<testresource uri="/system/shared/page.dtd"/>
<resourcestorender>
<!--<regex>/sites/.*</regex>-->
<!--START Declare site export-->
<regex>/sites/187/.*</regex>
<regex>/system/modules/tuo.telecomitalia.mastersite/resources/.*</regex>
<!--END Declare site export
<regex>/system/workplace/commons/style/.*</regex>
<regex>/system/galleries/.*</regex>
<regex>/system/modules/.*/resources/.*</regex>
-->
<export-rules>
<export-rule>
<name>SYSTEM</name>
<description>when publishing
resource in /system nothing was done (full static export
required)</description>
<modified-resources>
<regex>/system/.*</regex>
</modified-resources>
<export-resources>
<uri>/system/lost-found/</uri>
</export-resources>
</export-rule>
<export-rule>
<name>187</name>
<description>when publishing
resources not in "section" sections export all but sections</description>
<modified-resources>
<regex>/sites/187/app/.*</regex>
<regex>/sites/187/archive/.*</regex>
<regex>/sites/187/footer/.*</regex>
<regex>/sites/187/messages/.*</regex>
<regex>/sites/187/rss/.*</regex>
<regex>/sites/187/search/.*</regex>
</modified-resources>
<export-resources>
<uri>/sites/187/app/</uri>
<uri>/sites/187/archive/</uri>
<uri>/sites/187/footer/</uri>
<uri>/sites/187/messages/</uri>
<uri>/sites/187/rss/</uri>
<uri>/sites/187/search/</uri>
</export-resources>
</export-rule>
<export-rule>
<name>187.section1</name>
<description>when publishing
resources in section1 export section1 and rss</description>
<modified-resources>
<regex>/sites/187/section1/.*</regex>
</modified-resources>
<export-resources>
<uri>/sites/187/section1/</uri>
<uri>/sites/187/rss/</uri>
</export-resources>
</export-rule>
<export-rule>
<name>187.section2.community</name>
<description>when publishing
resources in section2/community export section2/community and
rss</description>
<modified-resources>
<regex>/sites/187/section2/community/.*</regex>
</modified-resources>
<export-resources>
<uri>/sites/187/section2/community/</uri>
<uri>/sites/187/rss/</uri>
</export-resources>
</export-rule>
<export-rule>
<name>187.section2.incentive</name>
<description>when publishing
resources in section2/incentive export section2/incentive</description>
<modified-resources>
<regex>/sites/187/section2/incentive/.*</regex>
</modified-resources>
<export-resources>
<uri>/sites/187/section2/incentive/</uri>
</export-resources>
</export-rule>
<export-rule>
<name>187.section2.news</name>
<description> publishing
resources in section2/news export section2/news/, rss and site home
page</description>
<modified-resources>
<regex>/sites/187/section2/news/.*</regex>
</modified-resources>
<export-resources>
<uri>/sites/187/index.html</uri>
<uri>/sites/187/section2/news/</uri>
<uri>/sites/187/rss/</uri>
</export-resources>
</export-rule>
</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</para
m>
<param
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlConten
t</param>
<param
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlPage</
param>
<param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</para
m>
<param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</para
m>
</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</para
m>
<param
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlConten
t</param>
<param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperXmlPage</param>
<param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</para
m>
<param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</para
m>
</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