Forums / Developer / Filter collaboration messages

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

eZ debug

Timing: Feb 01 2025 19:50:35
Script start
Timing: Feb 01 2025 19:50:35
Module start 'content'
Timing: Feb 01 2025 19:50:36
Module end 'content'
Timing: Feb 01 2025 19:50:36
Script end

Main resources:

Total runtime1.2439 sec
Peak memory usage6,144.0000 KB
Database Queries195

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 675.6719214.8125
Module start 'content' 0.00591.1051 890.48441,760.3281
Module end 'content' 1.11100.1329 2,650.8125581.5547
Script end 1.2438  3,232.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00660.5270210.0003
Check MTime0.00140.1131210.0001
Mysql Total
Database connection0.00070.058910.0007
Mysqli_queries1.148892.35131950.0059
Looping result0.00200.15771930.0000
Template Total1.218698.020.6093
Template load0.00350.278620.0017
Template processing1.215197.687220.6076
Template load and register function0.00130.103710.0013
states
state_id_array0.00050.039510.0005
state_identifier_array0.00180.145220.0009
Override
Cache load0.00320.2573290.0001
Sytem overhead
Fetch class attribute can translate value0.00150.123430.0005
Fetch class attribute name0.00250.204940.0006
XML
Image XML parsing0.00090.069330.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00300.2433270.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs