New event listener

Author Message

Fabien Scantamburlo

Friday 16 May 2008 6:44:48 am

Hi,

I need to trig a worflow with an event which is applied on a Content Class but not on the publish before/after Plubication.

For example:
When a user is editing an object (in back-office interface), he can push a button (e.g. DoSomething) to call an operator (whithout leave the edition mode and lose the draft).

I tryed with workflows :
create an extension/myworkflow
set the extension/myworkflow/settings/workflow.ini.append.php
create an event (extension/myworkflow/event/dosomethingtype.php)
create the worklow group, including my worflow
create the trigger
All is fine...

However, what can i do on my button to be caught by the trigger. I tryed :

<input type="submit" value="Do something" name="DoSomethingButton" class="button"/>

Unfortunately, it doesn't work.

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 11:30:14
Script start
Timing: Jan 18 2025 11:30:14
Module start 'layout'
Timing: Jan 18 2025 11:30:14
Module start 'content'
Timing: Jan 18 2025 11:30:15
Module end 'content'
Timing: Jan 18 2025 11:30:15
Script end

Main resources:

Total runtime0.9112 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.9141152.6094
Module start 'layout' 0.00580.0025 741.523439.4297
Module start 'content' 0.00830.9015 780.9531441.8281
Module end 'content' 0.90980.0014 1,222.78138.1875
Script end 0.9111  1,230.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3981160.0002
Check MTime0.00170.1872160.0001
Mysql Total
Database connection0.00090.103310.0009
Mysqli_queries0.867295.1706460.0189
Looping result0.00040.0446440.0000
Template Total0.882196.820.4410
Template load0.00190.208120.0009
Template processing0.880196.593720.4401
Template load and register function0.00010.011410.0001
states
state_id_array0.00080.084210.0008
state_identifier_array0.00100.105020.0005
Override
Cache load0.00150.1675180.0001
Sytem overhead
Fetch class attribute can translate value0.00160.170510.0016
Fetch class attribute name0.00090.094620.0004
XML
Image XML parsing0.00060.061710.0006
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00100.1091160.0001
String conversion0.00000.000740.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs