Hi All,
I am currently working on drupal commons 2.0. I need to create a link (My comments) such that on clicking on it the user will see only the comments posted by him.

I am a newbie in drupal.I want to know can this be done without creating a module or If module needs to be created then how it is to be done?

If anyone knows the solution please help.
Thanks

Comments

saitanay’s picture

i dont think you would need to build a module for this

you can make a view that lists all comments, and add a filter : user = current user
Add a page display to the view

and link the page to "My Comments"

saurabh juyal’s picture

Thanks for the help.
I tried to do what you had suggested but unfortunately it didn't work.
I created a view that lists all comments and added a filter user:current=yes (There is no filter user=current user to add) but still it is displaying all the comments.