Drupal Views of nodes to show node comments

ifroz picture ifroz · Oct 7, 2010 · Viewed 7.7k times · Source

I've encountered a Drupal problem: I'm using the Views module for rendering nodes of a kind, based on the user id of it's author (it is a Content Profile actually). I want the view to show the comments for the node, just like in node/%. I could not find any option in views or any relevant module. Am I in the wrong direction and should reorganize stuff for this...?

Any ideas, how can it be done?

Regards,

Laci

Answer

googletorp picture googletorp · Oct 7, 2010

Using views is really not the best plan of action. You should instead create a node template in your theme and customize it. If needed you can put some logic in a preprocess function. It requires more coding but will get you where you want.