[opencms-dev] Setting up an event listener
Sebastian Himberger
sebastian.himberger at gmx.de
Thu May 4 11:36:00 CEST 2006
Hi,
create a Module Action Class
(http://synyx.de/api/opencms6.0.0/org/opencms/module/A_CmsModuleAction.html)
and register this class in your module (using the administration tool,
the manifest or opencms-modules.xml). Inside the initialize-method do:
OpenCms.addEventListener(this,${types of event's you want to register to});
Now all Event's will be dispatched to your module-action class. Of
course you can also create a custom class and implement
I_CmsEventListener and register this class during the initialize-method.
I Hope this helps.
best regards
Sebastian
More information about the opencms-dev
mailing list