Page 1 of 1
Comments from CGFeedback doesn't show after publishing
Posted: Wed May 20, 2009 12:40 pm
by heidig
I've installed CGFeedback, and the comment and ratings form is working good. But how do I get the comments to show on the page after publishing?? I can't find the params for this, probably it's just me that can't understand it. Is there somesone who can explain to me? I'm using the CGFeedback-module with the News-module.
Thanks if someone will help me!
Heidi
Re: Comments from CGFeedback doesn't show after publishing
Posted: Mon May 25, 2009 3:32 am
by Jeff
Look at this parameter:
# (optional) policy="normal" - Applicable only in the default comment form action, this parameter specifies a specific behaviour policy for the form.
* normal - (default)
-- The system will not redirect to any page, instead it will output an information message or error according to the template that is selected. This is similar behaviour to all other modules. The "destpage" parameter has no effect with this policy.
*
* session
-- On form submission, the system will store form variables in the session, and redirect back to the originating url.. it will then retrieve the values from the session to re-populate the form, and display any optional error. The "inline" parameter has no effect with this policy.
Re: Comments from CGFeedback doesn't show after publishing
Posted: Tue Jun 01, 2010 5:53 am
by WebGirl
I found out that you need to show TWO tags in your Template:
{CGFeedback action='summary'}
{CGFeedback}
The first one is an instruction to show the SUMMARY (after you've approved the Feedback) above the form - you can put this after the form if you prefer, like this:
{CGFeedback}
{CGFeedback action='summary'}
If you want more parameters specified, you then start adding them to the tag as per ajprog's post.
If you would like to know which page the Feedback came from, you need to add this to your code:
{CGFeedback action='summary'}
{CGFeedback key2=$page_name}
When you login to the Admin panel, you will then see the name of the page in the Key2 column, beside each comment.
Hope this helps someone.
Re: Comments from CGFeedback doesn't show after publishing
Posted: Sun Dec 05, 2010 4:53 pm
by replytomk3
This was not explained anywhere clearly, so here goes:
To see on which page the comment was posted, use
Here's where the problems come from:
1) There must be two calls in the template, one for the contact form, and one to show the comments posted. So we will have something like this:
Code: Select all
{CGFeedback action='summary'}
{CGFeedback}
2) CRITICAL: if you use the page_name feature it MUST be called in both of those statements, or comments WILL NOT show. Placing the page_name call only in the comment form call, and not in the summary call will not display ANY comments on your website.
So the call must be:
Code: Select all
{CGFeedback key2=$page_name action='summary'}
{CGFeedback key2=$page_name}
3) If you have decided to include the page_call feature only later, after comments have been posted on your website with the bare-bones call, those old comments WILL NOT BE SHOWN.
If you need to show both styles of comments, use something like this:
Code: Select all
{CGFeedback key2=$page_name action='summary'}{CGFeedback action='summary'}<br />
{CGFeedback key2=$page_name}
Re: Comments from CGFeedback doesn't show after publishing
Posted: Thu Dec 13, 2012 2:58 pm
by jakovbak
Sorry folks, I just can't make it work!!!
This is my code:
<div id="blogcomment">
{CGFeedback key2=$page_name}
{CGFeedback key2=$page_name action='summary'}
</div>
and it gives me all posted comments below every blog entry. If I delete some parameter then I don't get comments at all!
And it's been going on and on for days...
Help please!
Re: Comments from CGFeedback doesn't show after publishing
Posted: Tue Dec 18, 2012 7:52 am
by jakovbak
YESSSSS!!!
I have finally found the solution and it goes like this:
<div id="blogcomment">
{CGFeedback key2=$page_name key2=$entry->id}
{CGFeedback key2=$page_name key2=$entry->id action='summary'}
</div>
Hope someone will someday find it useful!
Have a nice day folks!