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

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

eZ debug

Timing: Jan 19 2025 01:17:46
Script start
Timing: Jan 19 2025 01:17:46
Module start 'layout'
Timing: Jan 19 2025 01:17:46
Module start 'content'
Timing: Jan 19 2025 01:17:46
Module end 'content'
Timing: Jan 19 2025 01:17:46
Script end

Main resources:

Total runtime0.7809 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.1484152.6250
Module start 'layout' 0.00780.0034 741.773439.4453
Module start 'content' 0.01110.7683 781.2188545.6328
Module end 'content' 0.77940.0015 1,326.851612.1641
Script end 0.7809  1,339.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4575160.0002
Check MTime0.00150.1895160.0001
Mysql Total
Database connection0.00130.166610.0013
Mysqli_queries0.720092.1984600.0120
Looping result0.00070.0869580.0000
Template Total0.741294.920.3706
Template load0.00200.257620.0010
Template processing0.739294.654320.3696
Template load and register function0.00030.032610.0003
states
state_id_array0.00130.167410.0013
state_identifier_array0.00190.245020.0010
Override
Cache load0.00170.2145290.0001
Sytem overhead
Fetch class attribute can translate value0.00180.228120.0009
Fetch class attribute name0.00170.219650.0003
XML
Image XML parsing0.00070.093120.0004
class_abstraction
Instantiating content class attribute0.00000.002050.0000
General
dbfile0.00080.1084170.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs