[opencms-dev] Execute after publish...

Chirouze Olivier olivier.chirouze at volvo.com
Thu Oct 16 14:24:43 CEST 2008


Thanks Steve.

I might use that feature in my module instead of inheriting the default AfterPublishExport handler...
I think it wasn't completly implemented in 7.0.3, was it?

Olivier


> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Steve Bryan
> Sent: 16 October 2008 14:09
> To: opencms-dev at opencms.org
> Subject: Re: [opencms-dev] Execute after publish...
>
> Hi Steph
>
> You might be able to use PublishEventListener.
>
> 1. Write a class implements I_CmsPublishEventListener and
> implement one of
> the methods (onFinish?) to do what you want (your FTP stuff).
> Add the class
> to MyModule.
>
> 2. Write a class extends A_CmsModuleAction, and set this as
> the action class
> of your module. In initialize, do:
> OpenCms.getPublishManager().addPublishListener(myListener);
>
>
> Steve
>
> -----Original Message-----
>
> Date: Wed, 15 Oct 2008 09:22:03 -0400
> From: Stephane Bourbonnais <sbourbonnais at nonlinear.ca>
> Subject: [opencms-dev] Execute after publish...
> To: "opencms-dev at opencms.org" <opencms-dev at opencms.org>
> Message-ID:
>
> <A4C6D3DF120B1648BC9809012E88D4FF5FC9A58092 at nlcexsvr.linear.local>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> So since I can't publish over FTP... is it possible to execute a shell
> script or something after a publish job is finished so that I
> can get the
> publish to the FTP server?
>
> Thanks,
> -Steph
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>



More information about the opencms-dev mailing list