[opencms-dev] Unable to export file using static export

Sharad Jain sharadjainleo at gmail.com
Thu Aug 28 07:49:14 CEST 2014


Hi,



I am unable to export my files from openCms using the static export.

I have some HTMl pages under /sites/default which uses the templates 
present in /system/modules/Mymodule/templates.My opencms-importexport 
config file looks as below :



<staticexport enabled="true">

	
	<staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticE
xportHandler</staticexporthandler>

	
	<linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubs
titutionHandler</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>false</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>

			
	<regex>/system/workplace/commons/style/.*</regex>

				<regex>/system/galleries/.*</regex>

			
	<regex>/system/modules/.*/resources/.*</regex>

<export-rules>

<export-rule>

        <name>ExportTest</name>

        <description>This rule will export all resources 
under /sites/default/,

                     if any resource 
under /system/modules/mymodule/templates/ is modified</description>

        <modified-resources>

            <regex>/system/modules/mymodule/templates/.*</regex>

        </modified-resources>

        <export-resources>

            <uri>/sites/default/</uri>

        </export-resources>

    </export-rule>

</export-rules>



			</resourcestorender>

		</rendersettings>

	</staticexport>

	



can anyone please help me with this?



Thanks,



Sharad Jain




More information about the opencms-dev mailing list