Page 1 of 1

Comments with regular pages?

Posted: Mon Jan 15, 2007 1:11 pm
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

Re: Comments with regular pages?

Posted: Mon Jan 15, 2007 1:35 pm
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...

Re: Comments with regular pages?

Posted: Mon Jan 15, 2007 1:52 pm
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.

Re: Comments with regular pages?

Posted: Mon Jan 15, 2007 8:52 pm
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!