Page 2 of 2

Re: News to Blog need help..

Posted: Fri May 18, 2007 4:19 pm
by deejmer
So I have used the blogs module, also with little (frustrating) success, so want to use the News module method of doing this. 

I would like to have the ability to allow comments on only a single category of news items (my blog category), but not all categories.  I see that there is a method of placing a tag

Code: Select all

{cms_module module='comments' modulename='News' pageid=$entry->id}
in the detail template to always allow for a comment, but is there something else I can place in the tag to only allow for comments in a specified news category?   I know I can place a comment tag in the summary field when drafting each news item, but would hate to force the final editor of the site to do this everytime they need to post.  Any ideas for a workaround here?

Re: News to Blog need help..

Posted: Sat Jun 09, 2007 9:29 pm
by RonnyK
I don't know if you found the solution yet, but I copied this code from Calguy from another post.

Code: Select all

{if $entry->category == 'blog'}
{cms_module module='comments' modulename='News' pageid=$entry->id}
{/if}
where the 'blog' is to be replaced with your own category.

Ronny