Opencms-importexport.xml

From OpenCms Wiki
Jump to: navigation, search

This file is used to manage opencms' import and export settings. Most of this file should probably be left as is. However, the static export section controls which assets are exported to the real filesystem when a project is published.

  <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=".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>
                        </resourcestorender>
                </rendersettings>
        </staticexport>

For sites which are saddled with video and other large binary assets in the CMS, it may be wise to include additional items in the "defaultsuffixes" block; this will cause them to be served from the real filesystem instead of the VFS.

      <suffix key=".mov" />
      <suffix key=".wmv" />
      <suffix key=".flv" />

Editing this file will require you to restart the opencms context to take effect.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox