Comments with regular pages?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Merri

Comments with regular pages?

Post by Merri »

I know one can add comments with a certain module, ie. News module, but how do I include comments to regular pages? I've used the following code:

Code: Select all

{cms_module module='comments' dateformat='d.m.Y H:i' pageid=$entry->id}
But it just throws me this error:

Code: Select all

Fatal error: Call to a member function GetContent() on a non-object in /www/asiakkaat/merri/public_html/dev/modules/Comments/action.default.php on line 46
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Comments with regular pages?

Post by Dr.CSS »

Did you look in the help for comments, Extensions » Modules click the name of the module or the word Help across from it...
Merri

Re: Comments with regular pages?

Post by Merri »

Yes, that is where I got the code from. However it doesn't explain how I can use with just regular pages so that the comments are only for that page. As I understand it, if I just add {cms_module module='comments'} it will show all the comments no matter what the page itself is which is not what I want once I have more than one page under commenting.
Jussi A.

Re: Comments with regular pages?

Post by Jussi A. »

Merri,

I've been testing the Comments module, too.
What I've learned so far is that a simple tag like this in the actual content of the page should work:

Code: Select all

{cms_module module='comments'}
Here are some examples (the comments are in Finnish, sorry):
http://cinemasf.net/index.php?page=test2
http://cinemasf.net/index.php?page=test3

Please note that I'm also using Captcha, and, the comments are moderated.


HTH!
Locked

Return to “Modules/Add-Ons”