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

eZ debug

Timing: Jan 18 2025 22:18:23
Script start
Timing: Jan 18 2025 22:18:23
Module start 'content'
Timing: Jan 18 2025 22:18:23
Module end 'content'
Timing: Jan 18 2025 22:18:24
Script end

Main resources:

Total runtime0.8143 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7031180.8438
Module start 'content' 0.00640.6826 768.5469550.7109
Module end 'content' 0.68890.1253 1,319.2578332.7500
Script end 0.8142  1,652.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5068210.0002
Check MTime0.00160.1942210.0001
Mysql Total
Database connection0.00060.068710.0006
Mysqli_queries0.740490.92531970.0038
Looping result0.00190.23651950.0000
Template Total0.782996.220.3915
Template load0.00650.796020.0032
Template processing0.776495.353220.3882
Template load and register function0.00010.015810.0001
states
state_id_array0.00140.175510.0014
state_identifier_array0.00180.225920.0009
Override
Cache load0.00610.7484290.0002
Sytem overhead
Fetch class attribute can translate value0.00100.126630.0003
Fetch class attribute name0.00130.154050.0003
XML
Image XML parsing0.00080.102030.0003
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00370.4597280.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs