News Module as Blog?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
deejmer
Forum Members
Forum Members
Posts: 69
Joined: Thu Jan 11, 2007 7:32 pm

News Module as Blog?

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News Module as Blog?

Post 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}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
deejmer
Forum Members
Forum Members
Posts: 69
Joined: Thu Jan 11, 2007 7:32 pm

Re: News Module as Blog?

Post by deejmer »

THANK YOU!  ;D
It works perfectly.  1 Karma point for you!
Post Reply

Return to “CMSMS Core”