Custom Trigger

Author Message

Bourelly Frederic

Tuesday 12 December 2006 8:29:40 am

Hi,

Is it possible to create a custom trigger without make a kernel hack ?

I need to send a mail when a certain content is approved. For that , no problem , i have a custom workflow event in an extension.
I also need to send a mail when a content is denied. For that, i would create a trigger content/ denied , so , with a custom event too, i could send the denied mail notification.

Please , someone have an idea ? Is it possible to do that , or how can i send mail on deny content publish?

Thanx.

Eirik Alfstad Johansen

Tuesday 08 May 2007 6:25:54 am

I would like to know this as well. Can anyone from eZ reveal if it's possible to create a trigger without hacking the kernel, or whether it's planned for a future release (or if we perhaps should report it as an enhancement request).

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Kristof Coomans

Tuesday 08 May 2007 11:02:10 pm

Hi guys

It's not possible to create a trigger without hacking the kernel. But I also hope that there will be more triggers to play with in future releases.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Eirik Alfstad Johansen

Wednesday 09 May 2007 12:07:06 am

I've added this as an enhancement request here:

http://issues.ez.no/IssueView.php?Id=10754&activeItem=1

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 18 2025 19:32:45
Script start
Timing: Jan 18 2025 19:32:45
Module start 'layout'
Timing: Jan 18 2025 19:32:45
Module start 'content'
Timing: Jan 18 2025 19:32:46
Module end 'content'
Timing: Jan 18 2025 19:32:46
Script end

Main resources:

Total runtime0.7737 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.7891152.6094
Module start 'layout' 0.00550.0029 740.398439.4063
Module start 'content' 0.00830.7640 779.8047585.8281
Module end 'content' 0.77230.0013 1,365.632812.2031
Script end 0.7736  1,377.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3994160.0002
Check MTime0.00130.1649160.0001
Mysql Total
Database connection0.00090.120610.0009
Mysqli_queries0.724293.6061620.0117
Looping result0.00060.0782600.0000
Template Total0.746196.420.3730
Template load0.00230.291920.0011
Template processing0.743896.137220.3719
Template load and register function0.00020.026910.0002
states
state_id_array0.00070.091110.0007
state_identifier_array0.00060.083120.0003
Override
Cache load0.00190.2414200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.066730.0002
Fetch class attribute name0.00090.112760.0001
XML
Image XML parsing0.00120.148730.0004
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00090.1209220.0000
String conversion0.00000.005940.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs