template override for collaboration notifications

Author Message

David Wirth

Thursday 01 July 2010 7:53:51 am

I'm trying to implement a notification template override for a particular object class. I can do this when the notification event type is publish. I can't seem to accomplish an override for collaboration items, however. My hunch is that the the collaboration item does not provide a class_id or class_identifier attribute on which I can match. I can get at the content object in the template with $collaboration_item.content but it looks like the content object attributes are not available to the override system. Is this correct?

And if so, if I need an extension to expose the object's class to the override system, can anyone provide a hint as to how I might go about that? I have not yet been able to figure out from the kernel files how template matching works, so I'm not sure what I would need to extend.

David Wirth

Tuesday 13 July 2010 5:36:13 am

Is nobody responding because nobody knows the answer or because it's a dumb question?

I have a workaround -- I added some conditional branching based on object class to approve.tpl -- but I'd really prefer a solution that's easier to maintain.

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 05:18:48
Script start
Timing: Jan 18 2025 05:18:48
Module start 'layout'
Timing: Jan 18 2025 05:18:48
Module start 'content'
Timing: Jan 18 2025 05:18:49
Module end 'content'
Timing: Jan 18 2025 05:18:49
Script end

Main resources:

Total runtime1.0234 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.1563152.6406
Module start 'layout' 0.00560.0032 741.796939.4766
Module start 'content' 0.00881.0129 781.2734457.1484
Module end 'content' 1.02170.0016 1,238.42198.1250
Script end 1.0233  1,246.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3580160.0002
Check MTime0.00150.1437160.0001
Mysql Total
Database connection0.00050.052810.0005
Mysqli_queries0.977095.4677520.0188
Looping result0.00060.0543500.0000
Template Total0.990296.820.4951
Template load0.00270.260820.0013
Template processing0.987596.498520.4938
Template load and register function0.00010.012910.0001
states
state_id_array0.00080.083010.0008
state_identifier_array0.00180.180420.0009
Override
Cache load0.00210.2071100.0002
Sytem overhead
Fetch class attribute can translate value0.00100.093510.0010
Fetch class attribute name0.00130.123430.0004
XML
Image XML parsing0.00060.055510.0006
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00100.0972160.0001
String conversion0.00000.001240.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs