Page 1 of 1

News Module as Blog?

Posted: Tue May 22, 2007 2:54 pm
by deejmer
So I have used the "blogs module", 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?

Thanks in advance.

Re: News Module as Blog?

Posted: Tue May 22, 2007 4:07 pm
by calguy1000
You can use smarty logic like this:

Code: Select all

{if $entry->category == 'blog'}
  {cms_module module='comments' modulename='News' pageid=$entry->id}
{/if}

Re: News Module as Blog?

Posted: Tue May 22, 2007 5:40 pm
by deejmer
THANK YOU!  ;D
It works perfectly.  1 Karma point for you!