When I launched this blog in Drupal, I knew, I would be modifying its "Recent Comments" Block someday. I did'nt like Drupals default "Recent Comments" Block. It only display, subject of the comment with its posted time.
But I wanted a lot more. I wanted to display the "'comment author'(linking to author's homepage) added a 'comment' (linking to comment) to 'Title of the post' (linking to the post) (Time ago). I also wanted to separate Comments according to the node types. Comments on the blog entry and Forums should be shown in a differnt blocks.
(Default in Drupal)
I created a view to display comments that were recentlly posted. And with little research, I was able to create the view, without any change in basic view templates. I am attaching the text file of the view, in case you want to give it a try. I was also able to have all Forum comments in a different block. For that you just need to add a Filter Node Type, which is set to Forums.
Happy Drupaling 
To import this view, Open http://www.yourdomain.com/admin/build/views/import and Copy this code there.
| Attachment | Size |
|---|---|
| TechPint_Comments.txt | 6.15 KB |
Thanks for this is a great
Thanks for this is a great article ;)
Recently I have been seeing
Recently I have been seeing this recent comments on several blogs and was wondering how they were able to do that. I thought it was a plugin or module, but now I did understand the way it is done.
Post new comment