"Article approved by: ..."

Author Message

Dariusz Wlodarczyk

Saturday 24 January 2004 2:44:31 pm

How to display information about approver of the content object ?

Sebastiaan van der Vliet

Wednesday 17 June 2009 1:47:25 am

Anybody?

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Sebastiaan van der Vliet

Wednesday 17 June 2009 2:49:15 am

Added the following line to kernel\classes\collaborationhandlers\ezapprove\ezapprovecollaborationhandler.php at line 286:

$collaborationItem->setAttribute( 'data_text3', $userID );

The userID is then available at: templates\collaboration\handlers\view\full\ezapprove.tpl as $collab_item.data_text3.

For example:
{"The content object %1 was approved by %2 on %3 and will be published when the publishing workflow continues. Please note: it can take up to 15 minutes for approved items to show up."|i18n('design/standard/collaboration/approval',,array($contentobject_link, fetch( 'content','object',hash('object_id',$collab_item.data_text3)).name,$collab_item.modified|l10n( shortdatetime )))}

Anyone with a different solution that does not require a kernel hack?

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

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 19 2025 01:14:35
Script start
Timing: Jan 19 2025 01:14:35
Module start 'layout'
Timing: Jan 19 2025 01:14:35
Module start 'content'
Timing: Jan 19 2025 01:14:36
Module end 'content'
Timing: Jan 19 2025 01:14:36
Script end

Main resources:

Total runtime0.7810 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 590.4219152.6250
Module start 'layout' 0.00860.0026 743.046939.4297
Module start 'content' 0.01120.7684 782.4766539.6719
Module end 'content' 0.77960.0014 1,322.148412.1797
Script end 0.7809  1,334.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3946160.0002
Check MTime0.00130.1641160.0001
Mysql Total
Database connection0.00070.094410.0007
Mysqli_queries0.730193.4900570.0128
Looping result0.00050.0697550.0000
Template Total0.746295.520.3731
Template load0.00200.259020.0010
Template processing0.744195.281020.3721
Template load and register function0.00010.016510.0001
states
state_id_array0.00110.144710.0011
state_identifier_array0.00110.141420.0006
Override
Cache load0.00170.2145160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.078620.0003
Fetch class attribute name0.00100.134450.0002
XML
Image XML parsing0.00110.139320.0005
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00090.1098230.0000
String conversion0.00000.000840.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs