Forums / Setup & design / "Article approved by: ..."

"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.