Hi,
I am currently using CMS MS 1.7, xampp 1.7.1, page: www.killercat.net
there I have pages with articles (not using the news module - only plain text & images)
for some pages, there are not only 1 but 2, 3 or more articles
I have added the comment module (1.9.2) and use it with the following code: {cms_module module="comments"}
If a page has now more than 1 article, I would like to be able to comment each article on its own
I have tried to add the code below each article of the page - but then all comments (for all articles of that page) are shown for each article
If possible, I would like to have the comments for each article only shown at the end of the article instead of currently all comments at the end of the page.
is that possible - can that be done, using the "page id" parameter?
or do I have to use the news module and link each comment directly to the news?
I don't use the CGFeedback Module, because I just needed a comment functionality and wasn't able to "reduce" that module to only display a comment with very little detail (not much information needed) --> but there I think I would have the same issue
do you have any ideas?
kind regards & Thanks in advance
Markus
[Solved] Comments Module - how to use it multiple times on one page
[Solved] Comments Module - how to use it multiple times on one page
Last edited by Longwolf on Mon Oct 04, 2010 11:24 am, edited 1 time in total.
Re: Q: Comments Module - how to use it multiple times on one page
Because you are not using News (or any other) module your articles does not have ID in other words for CMSms they are not records of any sort, they are a set of paragraphs only.there I have pages with articles (not using the news module - only plain text & images)
for some pages, there are not only 1 but 2, 3 or more articles
Though you could make it look right with CGFeedback - use 2 keys - $page_alias and "article name".
Real solution is to use News module, you will avoid a lot of issues in the future.
Re: Q: Comments Module - how to use it multiple times on one page
Hi,
that is correct - thoght it might be easier to do so (especially, as the website is structured in the menu) - I didn't want to add more complexity to it, as a friend of mine is writing & publishing the articles, who is not that familiar with the PC, ...
so I will try to change this to the news module --> thanks for the reply!
kind regards
Markus
that is correct - thoght it might be easier to do so (especially, as the website is structured in the menu) - I didn't want to add more complexity to it, as a friend of mine is writing & publishing the articles, who is not that familiar with the PC, ...
so I will try to change this to the news module --> thanks for the reply!
kind regards
Markus
Re: Q: Comments Module - how to use it multiple times on one page
Hi,Peciura wrote:Because you are not using News (or any other) module your articles does not have ID in other words for CMSms they are not records of any sort, they are a set of paragraphs only.there I have pages with articles (not using the news module - only plain text & images)
for some pages, there are not only 1 but 2, 3 or more articles
Though you could make it look right with CGFeedback - use 2 keys - $page_alias and "article name".
Real solution is to use News module, you will avoid a lot of issues in the future.
I just tried it with the news module but receive a (to me) strange Smarty Error:
I updated to the latest Versions - see info below - so systemwise everything should be fine - or?string(126) "Smarty error: [in content:content_en line 2]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line 1550)" string(131) "Smarty error: [in content:content_en line 2]: syntax error: invalid attribute name: ''News'' (Smarty_Compiler.class.php, line 1550)"
kind regardsCMS Made Simple Version: 1.8.2
Installed Modules:
CMSMailer: 2.0
FileManager: 1.0.2
MenuManager: 1.6.5
ModuleManager: 1.4
News: 2.10.6
nuSOAP: 1.0.2
Printing: 1.1.0
Search: 1.6.5
ThemeManager: 1.1.1
TinyMCE: 2.7.2
Album: 0.9.3
CGUserDirectory: 1.2.4
Calendar: 0.8.2
FrontEndUsers: 1.12.2
CustomContent: 1.7.3
Smileys: 0.2.0
Guestbook: 1.3.0
CGExtensions: 1.19.6
CGSimpleSmarty: 1.4.5
Captcha: 0.4.3
JQueryTools: 1.0.5
SelfRegistration: 1.6.5
Comments: 1.9.2
CGBlog: 1.6
Statistics: 1.0.1
Current PHP Version: 5.2.12
PHP Configuration:
Maximum Post Size: 30M
Maximum Upload Size: 20M
PHP Memory Limit: 31M
PHP Safe Mode: Off
Maximum Execution Time: 19 seconds
Session Save Path: ***
MySQL Server Version: 5.1.47
Server Software: Apache
Server API: CGI
Server OS: Linux v 2.6.18-164.11.1.el5PAE on i686 architecture
Directory Permissions:
tmp/cache - 0755
tmp/templates_c - 0755
uploads - 0755
modules - 0755
Browser: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; msn OptimizedIE8;DEAT)
Markus
Re: Q: Comments Module - how to use it multiple times on one page
Longwolf,
how did you include news tag in your page/template?
Like {News}?
Error says there is invalid attribute name = and News, so this could be caused by some typo?
how did you include news tag in your page/template?
Like {News}?
Error says there is invalid attribute name = and News, so this could be caused by some typo?
Re: Q: Comments Module - how to use it multiple times on one page
Hi Uniqu3,
I have used the following 2 Tags:
{news number='7' category="test_comment" }
{cms_module module='comments' modulename='News' pageid=$entry->id}
I have tried to locate the error a couple of times (found a similar issue in the french board - where the issue was, that the user had already PHP 5.3)
what I found out is:
if I use only {cms_module module='comments' modulename='news'} then I can at least read the articles and add a comment at the end of the page - same as with the next possibility
if I use only {cms_module module='comments'}, then it works really fine - but of course there is only 1 comment possibility at the end of the page and not for every new article
if I use the whole set, then also the page layout is gone
for each of the 3 variations I have created a own page:
complete Tag: http://www.killercat.net/cms/index.php? ... mment-news
Tag without pageid=$entry->id: http://www.killercat.net/cms/index.php? ... ent-news-2
Tag without modulename='News' pageid=$entry->id: http://www.killercat.net/cms/index.php? ... ent-news-3
kind regards
Markus
I have used the following 2 Tags:
{news number='7' category="test_comment" }
{cms_module module='comments' modulename='News' pageid=$entry->id}
I have tried to locate the error a couple of times (found a similar issue in the french board - where the issue was, that the user had already PHP 5.3)
what I found out is:
if I use only {cms_module module='comments' modulename='news'} then I can at least read the articles and add a comment at the end of the page - same as with the next possibility
if I use only {cms_module module='comments'}, then it works really fine - but of course there is only 1 comment possibility at the end of the page and not for every new article
if I use the whole set, then also the page layout is gone
for each of the 3 variations I have created a own page:
complete Tag: http://www.killercat.net/cms/index.php? ... mment-news
Tag without pageid=$entry->id: http://www.killercat.net/cms/index.php? ... ent-news-2
Tag without modulename='News' pageid=$entry->id: http://www.killercat.net/cms/index.php? ... ent-news-3
kind regards
Markus
Re: Q: Comments Module - how to use it multiple times on one page
Hi,
this
{cms_module module='comments' modulename='News' pageid=$entry->id}
should go in the Detail news template. If you simply use it on summary page or any other page with {news something} the comments module doesn't know what $entry->id is.
this
{cms_module module='comments' modulename='News' pageid=$entry->id}
should go in the Detail news template. If you simply use it on summary page or any other page with {news something} the comments module doesn't know what $entry->id is.
Re: Q: Comments Module - how to use it multiple times on one page
Hi,
after rethinking this sounds absolutely logical
thanks for the hint
i'm just trying to fit this in (into the new "summary template") - struggeling a bit - but seems to be working
thanks for your help again!
Markus
after rethinking this sounds absolutely logical

i'm just trying to fit this in (into the new "summary template") - struggeling a bit - but seems to be working
thanks for your help again!
Markus