Inform the user his comment is waiting for approval

Author Message

Patrice Fortin

Monday 24 September 2007 11:08:25 am

Hi people,

I created a site in which anonymous users can post comments on articles, but I want them to be approved before being published.

I created a workflow using ezapprove which allow a group of user to approve the comment before it is published (in the collaboration page).

The little tiny problem is that the anonymous user who post a comment is not notified that is comment is waiting for approval. So he is redirected to the article page and doesn't see his comment. What he does then? he post it again, and then thinks "comment posting doesn't work, this site is crap". (I guess he thinks that)

The best for me would be to redirect to the article on which I use a custom template starting with something like

{section show=$waiting_approval}
<div class="message-feedback">
<h2> {'Your comment is waiting for approval before being published.'|i18n( 'some/thing' )}</h2>
</div>
{/section}

But how can I set this $waiting_approval variable ??

Or maybe I can just add another event in the workflow before the ezapproval which shows a page to the user saying the comment is waiting for approval, and then let the workflow continue ??

What you think is the better way ? Or is there a easier way ?

Thanks
Patrice

Greg McAvoy-Jensen

Tuesday 27 November 2007 8:14:13 am

One very simple method is simply to change the "submit" button text to "Submit for Approval and Posting"; or just include a note above the submit button about the approval process.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

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