ezcomments and approval

Author Message

Pascal France

Friday 10 December 2010 2:22:26 pm

Hi,

Is there a way to approve befor publishing the comments provided by the extension ezcomments ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Daisy Radix

Saturday 11 December 2010 12:43:26 am

You can add an workflow event on your class which use ezcomments only for content modification and users who can comment. It's should work.

eZ Publish certified developper :http://auth.ez.no/certification/verify/378142

Pascal France

Saturday 11 December 2010 1:07:49 pm

Thanks for your reply Daisy,

But this does not work for me.

Did you successfuly try your solution ?

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Daisy Radix

Sunday 12 December 2010 1:57:29 am

Hello,

Yes i tried and it works.

I created 2 workflows :

1 / Workflow event approve "Add Comment"

  • Affected sections : all
  • Affected languages: all
  • Affected versions: all
  • Groups who approve content: Administrator Users

2 / Workflow event multplexer on the Comment classe :

  • Affected sections : all
  • Affected languages: all
  • Classes to run workflow: Comment
  • Affected versions: all
  • Users without workflow IDs: Administrator Users
  • Workflow to run: "Add Comment"

Then go into Triggers menu and select workflow multiplexer on content publish before

eZ Publish certified developper :http://auth.ez.no/certification/verify/378142

Chen Xiongjie

Friday 07 January 2011 2:44:42 am

@Daisy, I'm not sure how it worked. Adding a comment will not republish the object so it shouldn't trigger that workflow.

@Pascal, AFAIK that's not possible for now. Because eZComments is using a different content model from ezpublish object model. Comment in ezcomments is not a object, so the workflow trigger can not be applied here.

For future, basically there should be a possibility to achieve this by some eZComments enhancements for workflow.

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

Daisy Radix

Friday 07 January 2011 3:22:03 am

Hello,

I'm sorry, I made a mistake...

I was thinking about comments class instead of comments datatype :)

eZ Publish certified developper :http://auth.ez.no/certification/verify/378142

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