Page 1 of 1

CGFeedback - "Hello Huston, we have a problem'

Posted: Fri May 15, 2009 3:27 pm
by darkknight
I used the following code on both the CGBlog pages and other pages not related to the CGBlog:

{CGFeedback commenttemplate="gkd_comment_form" }
Comments
{CGFeedback action='summary' summarytemplate='gkd_summary' destpage='thankyou'}

The goal is to provide a common 'Thank You' page for all CGFeedback entries.

On the blog pages, the generated html code is:



BUT, on any other page the html code is:



where XXX is the alias name of the page.

For some reason, CGFeedback is ignoring the 'destpage='thankyou' parameter on all but the related CGBlog pages.

Can anyone shed some light on this one?

Thanks

Re: CGFeedback - "Hello Huston, we have a problem'

Posted: Fri May 15, 2009 4:06 pm
by Jeff
One problem I see is that the destpage is on the feedback display(summary) call and not on the feedback submit call.
(optional) destpage="" - Applicable only in the default comment form action, this parameter specifies a page to redirect to after the form has been completed.

Re: CGFeedback - "Hello Huston, we have a problem'

Posted: Fri May 15, 2009 6:46 pm
by darkknight
Thanks ajprog

I tried your suggestion and changed the code to:

Comments
{CGFeedback action='default' commenttemplate='gkd_comment_form' destpage='thankyou'}
{CGFeedback action='summary' summarytemplate='gkd_summary' }

After a lot of experimentation I find that the parameter "destpage='thankyou'" is having no effect on any of the pages where there is a feedback. The form header is shown below:











It appears that the 'action' directive is not being replaced by content of the destpage parameter.

I have been looking at this far too long and I may be missing something obvious. Any suggestions would be appreciated.

Re: CGFeedback - "Hello Huston, we have a problem'

Posted: Sat May 16, 2009 8:22 pm
by Jeff
I notice there is a parameter that needs to be set

Code: Select all

policy='session'
in the cgfeedback call.

{CGFeedback action='default' key1='cal' destpage='home' policy='session'}