Using News in combination with Comments as a Blog module

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Using News in combination with Comments as a Blog module

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

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

Post by RonnyK »

sure, you can pass 'ccuser_loggedin()' as well....
or use the BlogsMS module that works with FEU by default...

Ronny
Post Reply

Return to “Tips and Tricks”