2

I am trying to set up the following in Views:

Review 1
-Example Field
-All Comments of the Review

Review 2
-Example Field
-All Comments of the Review

I'm pulling in the comments from a relationship. However, rather than grouping all the comments under the review, it duplicates the Review:

Review 1
-Example Field
-Comment 1

Review 1
-Example Field
-Comment 2

And so forth. How can I group all the comments to not duplicate the node, and just appear in order and grouped for the review node?

8
  • Have you set the relationship as "required"?
    – Volker
    Commented Apr 7, 2013 at 20:01
  • that didn't seem to change anything. the comments show up without a problem, they just appear one at a time, and duplicate my review for each comment of that node.
    – Noah
    Commented Apr 7, 2013 at 20:09
  • i've been playing around with field sorting, but no luck.
    – Noah
    Commented Apr 7, 2013 at 20:09
  • Have you tried the format settings for your row style? You can define a field to group the output by...
    – Volker
    Commented Apr 7, 2013 at 20:19
  • that's what i'm experimenting with now. i've tried grouping by comment id, nid, author, etc.
    – Noah
    Commented Apr 7, 2013 at 20:23

1 Answer 1

0

I know an old post anyway. There two solutions to this, here is one, but for this you need to define the type of the view as comment view right from the start, However another solution is that (Assuming Review 1, Review 2 are nodes being pulled and a relationship is set on the comment and node), right below the Title block you have the FORMAT configuration block, set it to Unformatted list and to display the fields (Notice: I have not tested on other formats such as table etc), click on Settings after the |pipe symbol and you can see Grouping field Nr.1 with a drop down, choose nid as your grouping method. In other cases there might be Grouping field Nr.2/3.. and so on. This should be able to group all your comments together for a node.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.