By nextgengames on
Im trying to build a block in views which displays the comments for the current node which is being viewing.
How would I setup the arguments?
Im trying to build a block in views which displays the comments for the current node which is being viewing.
How would I setup the arguments?
Comments
excerpted from our IRC
excerpted from our IRC discussion:
take a look at the Views Argument Handling handbook http://drupal.org/node/70145
Although I still can't seem to get it working. This (http://drupal.org/node/70145#comment-1094325) should work but for whatever reason it's not.
I ended up giving up on the Views approach for now and found this: http://planet.bfwgaming.com/drupal-snippet-moving-node-comments-onto-a-b...
Now, the author there recommends hacking node.module, which we all know is wrong. I just took his block PHP code and used that. You can remove the comments from the node view via the comments module or by theming.
If I have some more time later today, I'll play more with the Views Arguments approach.
Hope this helps!
steve