Filter collaboration messages

Filter collaboration messages

Tuesday 26 July 2011 3:54:46 am - 2 replies

Author Message

Nicolas Pastorino

Tuesday 26 July 2011 4:59:33 am

Hi Anne, and welcome to the eZ Community !

Say we start off this view : /collaboration/view/summary, using this template :

design/admin2/templates/collaboration/view/summary.tpl

At line 24., another template is included, to display the list of collaboration elements : 

design/admin2/templates/collaboration/item_list.tpl

At line 27 in the latter, collaboration_view_gui is called (this function works the same way as node_view_gui, which you may be more familiar with) triggering the load of the following template when the collaboration item is related to content approval : 

design/admin2/templates/collaboration/handlers/view/line/ezapprove.tpl

We are nearing the holy grail : from line 8 to line 23, the switch statement is made against the $item.data_int3 variable, which contains the status of the approval (pending, approved, awaiting your approval, denied). That is the data you need to build what you described, if i understood correctly.

A solution can be to create an override for this last template (the proper way : in an extension, as explained here) and alter the display logic.

Let us know how things go,
Cheers, 

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Anne Cavalier

Tuesday 26 July 2011 5:22:25 am

Hi Nicolas,

Thank you very much for your quick and accurate response. I'm at home today but tomorrow I will try to follow your advice - or to forward the messages to dev if I don't have sufficient permissions - and I will tell you how things go.

Thank you again!

Cheers,

Anne

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.