Hi!
I have a system set up where people can view form entries through the form browser on the front end. What I want to be able to do is get it so that people can post comments about each form entry individually.
Right now I have my comments module inserted into the full template like this: {cms_module module='comments' modulename='FormBuilder' pageid=$entry->id}
I thought this might let me post separate comment sets for each entry, but it doesn't work at all.
Any ideas on how I can accomplish this?
Comments module and Form browser
Re: Comments module and Form browser
Anyone have any ideas on this?
I have poked around in the forum and I found a solution for the calendar module, but not for the form browser.
I'm pretty sure its just a matter of figuring out what to put in the pageid= field of the module tag. I've tried just about everything I can think of, but I have no idea what I'm doing so that's not saying much.
I have poked around in the forum and I found a solution for the calendar module, but not for the form browser.
I'm pretty sure its just a matter of figuring out what to put in the pageid= field of the module tag. I've tried just about everything I can think of, but I have no idea what I'm doing so that's not saying much.
Re: Comments module and Form browser
You can easily figure out what field contains the pageid for Comments Module.sagedel wrote: Any ideas on how I can accomplish this?
Step 1 - Show all smarty variables on the site
Code: Select all
{get_template_vars}
Step 3 (optional) If variable is an object or array then print the values
Code: Select all
{$resp|print_r}
Code: Select all
{cms_module module='comments' modulename='FormBuilder' pageid=$resp->id}
Re: Comments module and Form browser
I include Polls module in the content of some news, which prevented comments from showing up, despite i was alerted about new comment by e-mail. Solution was to change news detail tamplate. At the very top of template i placed
and the coment tag changed as follows
Code: Select all
{capture assign='page_id_temp'}{$entry->id}{/capture}
Code: Select all
{cms_module module='comments' modulename='News' pageid=$page_id_temp emailfield='1'}