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
|