Share » Forums » Setup & design » "Article approved by: ..."

"Article approved by: ..."

"Article approved by: ..."

Saturday 24 January 2004 2:44:31 pm - 2 replies

Author Message

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.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu