Page 1 of 1

Using News in combination with Comments as a Blog module

Posted: Sat Dec 29, 2007 8:08 pm
by RonnyK
I use the News-module as a blog, where the Comments-module is additionally required.

The help of the Comments-module gives the single line that must be added at the end of the News Detail Template. I changed that line a little, in wrapping a little logic around, to only show the Comments for a specific News-category.

Logic added at the end of the News Detail Template.
{if $entry->category == 'Blog'}
{cms_module module='comments' dateformat="F d, Y H:i:s" modulename='News' pageid=$entry->id}
{/if}
As seen in this line, the only News category where the comments will appear to have the Blog-functionality, is the category Blog. I also additionally gave the date-format in the calling, as I needed to style the date of the comments different as well.

Ronny

Re: Using News in combination with Comments as a Blog module

Posted: Tue Oct 07, 2008 5:55 pm
by RonnyK
sure, you can pass 'ccuser_loggedin()' as well....
or use the BlogsMS module that works with FEU by default...

Ronny