[opencms-dev] Static Export problem with OpenCMS 6.0.3

Arash Kaffamanesh arash.kaffamanesh at pomegranate.de
Fri Jan 13 22:59:25 CET 2006


Helen,
 
ok. you have two ways to allow non administrative users to do static
export:
 
1. modify the opencms-workplace.xml file as follow:
 
<explorertype name="xmlpage" key="fileicon.xmlpage" icon="page.gif">
 
...
 
 
<contextmenu>
      <entry key="explorer.context.pageedit" uri="editors/editor.jsp"
target="_top" rules="d d iiii aaai dddd" order="10"/>
 
...
 
<entry key="explorer.context.property" uri="commons/property.jsp"
rules="a a aaai aaai aaai" order="360"/>
 
<entry key="explorer.context.static"
uri="admin/database/staticexport.html" rules="a a aaai aaai aaai"
order="370"/>

 
</contextmenu>
 
 
you need to define the key="explorer.context.static" in the
workplace.properties file, this file might be somewhere in the source
tree, the german file workplace_de.properties is here in the VFS:
 
/system/workplace/locales/de/messages/org/opencms/workplace/
 
the english one is in the source tree under
src/org/opencms/workplace/workplace.properties, so you have to extend it
and build a new jar I think.
 
 
2. you can use also the AfterPublishExportHandler, see:
 
http://mail.opencms.org/pipermail/opencms-dev/2005q4/021164.html
 
 
But your main problem is that you can't export your html files, so try
to extend the opencms-importexport.xml like this:
 
<staticexport enabled="true">
 
<staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHan
dler</staticexporthandler>
  <exportpath>export</exportpath>
  <defaultpropertyvalue>false</defaultpropertyvalue>
  <defaultsuffixes>
   <suffix key=".html"/>   <-- new
   <suffix key=".jpg"/>
   <suffix key=".gif"/>
 
 
and set export=true on your template and some *.js files of the
navigation files if you are using too, so we are trying to force all
possibilities to do static export, normaly it should be enough to set
the export=true on the sites/yoursite folder, but give it a try and let
me know what happens  :-)
 
as a short conclusion for others in the future see also:
 
http://www.pomegranate.de:9000/cms/forum/viewthread?thread=60
 
Have a nice weekend,
Arash

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Helen Huang
Sent: Freitag, 13. Januar 2006 20:47
To: opencms-dev at opencms.org
Subject: [opencms-dev] Static Export problem with OpenCMS 6.0.3



Arash,

 

Thanks for your help. 

 

I set the folder properties export=true and exportname=iptvexport and
published the folder and I am still not able to see the folder/files
under the export directory. I can do the static export successfully
using the "Start Static Export" link under Administration View, Database
Management, Additional Tools. But I don't want my user to go to the
Administration View to do the export every time they want to export a
file.

 

Do you have any ideas?

 

Thanks again!

 


NRTC
Helen Huang
Software Engineer
 
<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=2121+Cooperative+Way&csz
=Herndon%2C+VA+20171&country=us> 2121 Cooperative Way
Herndon, VA 20171
tel: 703-467-1418 

 


 


 <http://www.plaxo.com/signature> 

 

This e-mail message, including any attachments, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, copy, use, disclosure, or
distribution is prohibited.  If you are not the intended recipient,
please contact the sender by reply e-mail and destroy all copies of the
original message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060113/ad9397fb/attachment.htm>


More information about the opencms-dev mailing list