Community

Applying Views to Comments as well as Nodes

Thanks in advance for any help in this.

I'm trying to set up a simple forum with tags such that when someone clicks on a tag, they get a listing of posts with that tag. Currently, clicking on a tag results in a view of related forum *topics* rather than related posts (ie, comments). For those new to forums, each topic is a node and all the posts under a topic are comments on that node. I've spent a lot of time now poking around the views configuration. (administration >> structure >> views) I could only find ways to show the comments of related forum topics. I didn't see a way to have the view's filtering apply to fields of nodes rather than nodes.

If this has already been address, apologies... please point me to the related post.

More info:
Drupal 7 hosted on Pantheon
Set up the forum using the Forum and Advanced Forum modules
For tags, I set up a special vocabulary and added a Term Reference to the Comments Fields for forum topics
Views works fine for displaying nodes on other parts of the site (eg, related blog posts)

Thanks!

Comments

_

You don't say what type of view you've created (nodes, comments, etc), but it sounds like it's a node view. My guess is, to do this, you would need to create a taxonomy view and add relationships for both the comment field and node fields that use that vocabulary.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

nobody click here