News to Blog need help..

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.
User avatar
deejmer
Forum Members
Forum Members
Posts: 69
Joined: Thu Jan 11, 2007 7:32 pm

Re: News to Blog need help..

Post 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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: News to Blog need help..

Post 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
Locked

Return to “CMSMS Core”