Filter collaboration messages

Author Message

Anne Cavalier

Tuesday 26 July 2011 3:54:46 am

Hello,

My first post on this forum. Hope you'll understand my very poor english (I'm french).

We use eZ Publish, version 4.4 since some days and I don't know very well this soft. I've tried to "Read The Fabulous Manuel" but there is nothing (I think) to answer my question.

Is there any way to filter messages on dashboard or Collaboration panel? All articles have the same login/author (as we copy all ancient pages in this new CMS)  and need to be rejected or validate in Workflow. We need to see only messages about rejected articles and not all the messages.

(En français : je n'ai pas trouvé dans la documentation un paramétrage qui permettrait de n'afficher pour l'auteur des articles que les messages concernant ses articles rejetés par les validateurs au cours du worklfow, soit sur son tableau de bord soit sur la page de collaboration. Idéalement une fois un article validé, même s'il avait été rejeté auparavant, devrait faire disparaître tous les messages le concernant.)

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

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 18 2025 03:10:06
Script start
Timing: Jan 18 2025 03:10:06
Module start 'layout'
Timing: Jan 18 2025 03:10:06
Module start 'content'
Timing: Jan 18 2025 03:10:07
Module end 'content'
Timing: Jan 18 2025 03:10:07
Script end

Main resources:

Total runtime0.6228 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 591.5469152.6250
Module start 'layout' 0.00580.0027 744.171939.4531
Module start 'content' 0.00850.6129 783.6250547.5625
Module end 'content' 0.62140.0013 1,331.187512.1641
Script end 0.6227  1,343.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5443160.0002
Check MTime0.00160.2515160.0001
Mysql Total
Database connection0.00060.101610.0006
Mysqli_queries0.574992.3099580.0099
Looping result0.00050.0784560.0000
Template Total0.594095.420.2970
Template load0.00230.377220.0012
Template processing0.591695.004120.2958
Template load and register function0.00010.023710.0001
states
state_id_array0.00100.157710.0010
state_identifier_array0.00080.124920.0004
Override
Cache load0.00200.3143290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.119620.0004
Fetch class attribute name0.00110.181840.0003
XML
Image XML parsing0.00060.095120.0003
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00080.1282160.0000
String conversion0.00000.001140.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/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: 21
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs