[opencms-dev] RC1: Automatically create siblings

Thomas Maerz thomasmaerz at gmx.de
Tue Jun 21 21:10:48 CEST 2005


"Ulrich Rueth" <lists at rueth.info> writes:

> Is there a way to automatically create a sibling of a file in a subfolder?
> Say, I am creating a new structured xml content file article_0001.html in a
> certain folder (e.g. /sites/mysite/myfolder/) and want to automatically
> generate a sibling of that file in a subdirectory of always the same name
> (/sites/mysite/myfolder/printversion/).

Take look at 
     org.opencms.main.OpenCms#addCmsEventListener(I_CmsEventListener)
     org.opencms.main.I_CmsEventListener


AFAIK you can register your EventListener also in your module
configuration. So that you don't have to register your listener manually
after an OpenCms startup.


Regards,
Thomas




More information about the opencms-dev mailing list