<div dir="ltr"><div>Hi Michael,</div>
<div> </div>
<div>How to set the property exportname in opencms-importexport.xml? Here is my current opencms-importexport.xml. </div>
<div> </div>
<div><?xml version="1.0" encoding="UTF-8"?><br><!DOCTYPE opencms SYSTEM "<a href="http://www.opencms.org/dtd/6.0/opencms-importexport.dtd">http://www.opencms.org/dtd/6.0/opencms-importexport.dtd</a>"></div>
<div><opencms><br> <importexport><br> <importexporthandlers><br> <importexporthandler class="org.opencms.importexport.CmsVfsImportExportHandler"/><br> <importexporthandler class="org.opencms.module.CmsModuleImportExportHandler"/><br>
</importexporthandlers><br> <import><br> <overwrite>true</overwrite><br> <convert>true</convert><br> <importversions><br> <importversion class="org.opencms.importexport.CmsImportVersion2"/><br>
<importversion class="org.opencms.importexport.CmsImportVersion3"/><br> <importversion class="org.opencms.importexport.CmsImportVersion4"/><br> <importversion class="org.opencms.importexport.CmsImportVersion5"/><br>
<importversion class="org.opencms.importexport.CmsImportVersion6"/><br> <importversion class="org.opencms.importexport.CmsImportVersion7"/><br> </importversions><br> <immutables><br>
<resource uri="/system/"/><br> <resource uri="/system/categories/"/><br> <resource uri="/system/galleries/"/><br> <resource uri="/system/galleries/download/"/><br>
<resource uri="/system/galleries/externallinks/"/><br> <resource uri="/system/galleries/htmlgalleries/"/><br> <resource uri="/system/galleries/pics/"/><br> <resource uri="/system/login/"/><br>
<resource uri="/system/modules/"/><br> <resource uri="/system/shared/"/><br> <resource uri="/system/workplace/"/><br> <resource uri="/system/workplace/admin/"/><br>
<resource uri="/system/workplace/help/"/><br> <resource uri="/system/workplace/locales/"/><br> <resource uri="/system/workplace/resources/"/><br> <resource uri="/system/workplace/restypes/"/><br>
<resource uri="/system/workplace/scripts/"/><br> <resource uri="/system/workplace/templates/"/><br> <resource uri="/system/workplace/views/"/><br> <resource uri="/sites/"/><br>
</immutables><br> <principaltranslations/><br> <ignoredproperties/><br> </import><br> </importexport><br> <staticexport enabled="true"><br> <staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler</staticexporthandler><br>
<linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler> <br> <exportpath>D:\dump</exportpath><br> <exportworkpath>temp</exportworkpath><br>
<exportbackups>2</exportbackups><br> <defaultpropertyvalue>false</defaultpropertyvalue><br> <defaultsuffixes><br> <suffix key=".jpg"/><br> <suffix key=".gif"/><br>
<suffix key=".png"/><br> <suffix key=".doc"/><br> <suffix key=".xls"/><br> <suffix key=".ppt"/><br> <suffix key=".pdf"/><br> <suffix key=".txt"/><br>
<suffix key=".css"/><br> <suffix key=".zip"/><br> <suffix key=".swf"/><br> <suffix key=".html"/><br> <suffix key=".js"/><br> <suffix key=".flv"/><br>
</defaultsuffixes><br> <rendersettings><br> <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><br> <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix><br> <userelativelinks>false</userelativelinks> <br>
<exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl><br> <plainoptimization>true</plainoptimization><br> <testresource uri="/system/shared/page.dtd"/><br> <resourcestorender><br>
<regex>/sites/.*</regex><br> <regex>/system/workplace/commons/style/.*</regex><br> <regex>/system/galleries/.*</regex><br> <regex>/system/modules/.*/resources/.*</regex><br>
</resourcestorender><br> </rendersettings><br> </staticexport><br> <usercsvexport><br> <separator>;</separator><br> <columns><br> <column>description</column><br>
<column>lastname</column><br> <column>firstname</column><br> <column>email</column><br> <column>address</column><br> <column>zipcode</column><br>
<column>city</column><br> <column>country</column><br> <column>USERPREFERENCES_workplace-startupsettingssite</column><br> <column>USERPREFERENCES_workplace-startupsettingslocale</column><br>
<column>password</column><br> </columns><br> </usercsvexport><br> <repositories><br> <repository name="standard" class="org.opencms.repository.CmsRepository"><br>
<params><br> <param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param><br> <param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param><br>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlPage</param><br> <param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param><br>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param><br> </params><br> <filter type="include"><br> <regex>/</regex><br>
<regex>/__properties/.*</regex><br> <regex>/sites/.*</regex><br> <regex>/system/</regex><br> <regex>/system/__properties/.*</regex><br> <regex>/system/galleries/.*</regex><br>
<regex>/system/modules/.*</regex><br> <regex>/system/workplace/.*</regex><br> </filter><br> </repository><br> <repository name="extended" class="org.opencms.repository.CmsRepository"><br>
<params><br> <param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param><br> <param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param><br>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperXmlPage</param><br> <param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param><br>
<param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param><br> </params><br> <filter type="include"><br> <regex>/</regex><br> <regex>/__properties/.*</regex><br>
<regex>/sites/.*</regex><br> <regex>/system/</regex><br> <regex>/system/__properties/.*</regex><br> <regex>/system/galleries/.*</regex><br> <regex>/system/modules/</regex><br>
<regex>/system/modules/[^/]*/</regex><br> <regex>/system/modules/[^/]*/__properties/.*</regex><br> <regex>/system/modules/[^/]*/resources/.*</regex><br> </filter><br> </repository><br>
</repositories><br></opencms><br></div>
<div> </div>
<div>Regards,</div>
<div>Harini</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Wed, Feb 16, 2011 at 5:00 PM, Michael Emmerich <span dir="ltr"><<a href="mailto:m.emmerich@alkacon.com">m.emmerich@alkacon.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Harini,<br><br>OpenCms always needs a prefix for exported files - like the "export",<br>but you could reconfigure the opencms-importexport.xml to choose another<br>
name for it.<br><br><br>To get rid of the "/sites/default/" in the export path, you can use the<br>"exportname" property.<br><br>Lets me explain it with an example:<br><br>You have a file in "/sites/default/mypage.html". So the default path<br>
when you export this file would be<br><br>"/export/sites/default/mypage.html"<br><br>If you now set the "exportname" property on the folder "/sites/default/"<br>to lets say "sunhine", the exported path would be<br>
<br>"/export/sunshine/mypage.html"<br><br>If you now set the "exportname" property on the folder "/sites/default/"<br>to lets say "/", the exported path would be<br><br>"/export/mypage.html"<br>
<br>Important: The value for the "exportname" must be unique in you OpenCms,<br>if you use the same exportname twice, it won#t work.<br><br>Very important: It is mandatory that you use the <cms:link> tag in all<br>
your links you use in your JSPs, otherweise your export will never work<br>as expected.<br><br>Kind Regards,<br>Michael<br><br><br><br>Am 16.02.2011 12:13, schrieb rama harini:<br>
<div>
<div></div>
<div class="h5">> Hi,<br>> I have developed one site using opencms. When I try to do static export,<br>> the html files are stored with the prefix /export/sites/default/. Is<br>> there any way to avoid this?<br>
> Regards,<br>> Harini<br>><br>><br>><br>><br></div></div>> _______________________________________________<br>> This mail is sent to you from the opencms-dev mailing list<br>> To change your list options, or to unsubscribe from the list, please visit<br>
> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br><br>--<br>Kind Regards,<br>Michael.<br><br>-------------------<br>Michael Emmerich<br>
<br>Visit OpenCms Days 2011 Conference and Expo<br>May 9 to May 10 2011 in Cologne, Germany<br><a href="http://www.opencms-days.org/" target="_blank">http://www.opencms-days.org</a><br><br>Alkacon Software GmbH - The OpenCms Experts<br>
<a href="http://www.alkacon.com/" target="_blank">http://www.alkacon.com</a> - <a href="http://www.opencms.org/" target="_blank">http://www.opencms.org</a><br><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote>
</div><br></div>