<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=986590515-15102004><FONT face=Arial
color=#0000ff size=2>Hello Daniel,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986590515-15102004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=986590515-15102004><FONT face=Arial
color=#0000ff size=2>I think rendering an image each time a property has been
changed takes too many resources. I would render the images after a publish
task. OpenCms keeps a database log of all published resources per publish task
identified by a publish history ID. Check out cmsEvent() in the driver manager
of the CVS head and you will see in the case where the publish project event
gets handled how to receive the publish history ID of the last publish task.
readPublishedResources on the Cms object gives you a List of all resources being
published in a publish task for a given ID. It would be easy to iterate this
list in a separate event handler to read Nav properties of published files
and eventually render images.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986590515-15102004><!-- Converted from text/plain format --><BR>
<P><FONT size=2>Regards,<BR>Thomas Weckert<BR>Alkacon Software - The OpenCms
Experts<BR><A href="http://www.alkacon.com/">http://www.alkacon.com</A>
</FONT></P></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>Im Auftrag von </B>Daniel
Wiesner<BR><B>Gesendet:</B> Donnerstag, 14. Oktober 2004 22:23<BR><B>An:</B>
opencms-dev@opencms.org<BR><B>Betreff:</B> Re: [opencms-dev] Creating
Images<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Thank you! </P>
<P> I have a class redistered in web.xml:</P>
<P><listener><BR>
<listener-class>de.avstudio.PropertyChangedListener</listener-class><BR></listener></P>
<P>and if I change any property of any file in the vfs this class
does its work: actually writing an image to c:\temp</P>
<P>but how can i get some information e.g. the title property of the
resource that wase causing the event? </P>
<P>Daniel.</P>
<P> </P>
<P> </P>
<P> </P>
<P>The OpenCms mailing list <opencms-dev@opencms.org> wrote: <BR>>
Daniel Wiesner <daniel.wiesner@av-studio.de> writes:<BR>> <BR>> >
I think I have to load the image creating class as a servlet because<BR>>
> the constructor does the registration - right? Or is there an other<BR>>
> way to load classess in opencms?<BR>> <BR>> I'd register a class for
this event that will request your image<BR>> creating servlet with the
correct url. Then you can link in your<BR>> template to the created image
files.<BR>> <BR>> Maybe also create two folders for offline and online
images.<BR>> <BR>> Regards,<BR>> Thomas<BR>> <BR>> <BR>>
<BR>> _______________________________________________<BR>> This mail is
send to you from the opencms-dev mailing list<BR>> To change your list
options, or to unsubscribe from the list, please visit<BR>>
http://mail.opencms.org/mailman/listinfo/opencms-dev<BR>>
<BR></P></BODY></HTML>