Forums / Developer / Creating an new Trigger

Creating an new Trigger

Author Message

Andreas Gellhaus

Monday 10 November 2003 4:27:27 am

Hi,

What do I have to do to create a new trigger? At example if I want to have an event at content/download/....
I have extended the AvailableOperations parameter in the workflow.ini. Now I can see the trigger in The Trigger list but if I use a workflow nothing happens.

So does anyone know what I have to do???

Thanks for your answers

Andreas

Paul Borgermans

Monday 10 November 2003 4:33:05 am

New triggers are non-trivial, but you may find a clue here:

http://pubsvn.ez.no/sdk/tutorials/view/workflows

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Andreas Gellhaus

Monday 10 November 2003 5:10:07 am

Nothing in live is trivial ;-)

Creating new workflows is not the Problem. I want to use a Workflow to check if the download-file is only uploaded on our ezserver or is also located on our download server so I can give the user different Download Server.

So I need a new trigger at the download action and there is no documentation about creating a new trigger position.

Andreas

Andreas Gellhaus

Tuesday 11 November 2003 3:09:24 am

OK paul,

you are absolutely right it is not trivial. I have spent al lot of time reading ezpublish code. That’s what I found out: Not every function in ez publish can have a trigger, in kernel/content/download.php is no code that watches for a trigger.

If I want one, I can "hack" the download.php or I write my own download action.
So I think I have to write my own download module, because I want to have a clean easy to update ezpublish version.

Ok, of we go!
There is always a new thing to learn about ezpublish.

Thank's
Andreas