notifications only on newly published objects

Author Message

Marko Žmak

Saturday 31 July 2010 1:33:39 pm

How can I set notifications to be sent only when an new object is created, and not when it's reedited?

I see that in notification.ini we have:

AvailableNotificationEventTypes[]=eznewcontent

under the [NotificationEventTypeSettings] group, but there's no eznewcontent folder in kernel/classes/notification/event/.

Why? Can this event still be used?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Andy Caiger

Wednesday 22 June 2011 6:46:14 am

This is a good question. It would be great if I set notifications to be sent only when an new object is created, and not when it's reedited!

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

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 00:53:22
Script start
Timing: Jan 18 2025 00:53:22
Module start 'layout'
Timing: Jan 18 2025 00:53:22
Module start 'content'
Timing: Jan 18 2025 00:53:23
Module end 'content'
Timing: Jan 18 2025 00:53:23
Script end

Main resources:

Total runtime1.0900 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.1641152.6406
Module start 'layout' 0.00470.0025 741.804739.4766
Module start 'content' 0.00721.0811 781.2813534.6016
Module end 'content' 1.08830.0016 1,315.88288.1250
Script end 1.0899  1,324.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2923160.0002
Check MTime0.00130.1191160.0001
Mysql Total
Database connection0.00060.053510.0006
Mysqli_queries1.040695.4744540.0193
Looping result0.00060.0534520.0000
Template Total1.062397.520.5312
Template load0.00220.203020.0011
Template processing1.060197.257920.5300
Template load and register function0.00020.016010.0002
states
state_id_array0.00140.130510.0014
state_identifier_array0.00280.259020.0014
Override
Cache load0.00170.1578120.0001
Sytem overhead
Fetch class attribute can translate value0.00060.057420.0003
Fetch class attribute name0.00110.102240.0003
XML
Image XML parsing0.00500.458120.0025
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00520.4753240.0002
String conversion0.00000.000640.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs