Doing multiple tasks after object publish ?

Author Message

H-Works Agency

Saturday 11 March 2006 5:47:35 am

Hi all,

I need to do some special task after object publication.

This object is a subscription form for a contest.

After this object is published i need to :

- Display a certain message.
- Send a confirmation email to the address that was filled in the form.

How can i do that ?

Do i have to devellop a whole new module or classic object publication + workflow is the good way to hanle it ?

Thanx for your help in advance.

Martin

EZP is Great

Betsy Gamrat

Saturday 11 March 2006 2:18:07 pm

Martin,

I had good luck using the node/view/full template to launch a PHP script in a popup window after publishing.

You'll have to add the "RedirectURIAfterPublish" input to the content/edit template for the class you are working with. I used view_parameters to pass additional information that was then decoded in node/view/full and used to launch the PHP with JavaScript using window.open.

It works great.

Kåre Køhler Høvik

Saturday 11 March 2006 11:53:37 pm

Hi

You can create a new workflow event doing the tasks you mention here. For creating new workflow events : http://ez.no/products/ez_publish/documentation/development/extensions/workflow_events

Kåre Høvik

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.