I have a question about views, specifically about grouping a relationship. I have a "partner" node that has many "docs", I want to list the name of the "partner" along with its corresponding "docs" below. I have the relationship set up correctly(I think) but can't figure out how or where to group it correctly.
I get this:
partner name 1
- doc name 1
partner name 1
- doc name 2
partner name 1
- doc name 3
partner name 2
- doc name 4
partner name 2
- doc name 5
partner name 3
- doc name 6
but would like this:
partner name 1
- doc name 1
- doc name 2
- doc name 3
partner name 2
- doc name 4
- doc name 5
- doc name 6
It sounds like you're on the right track. In order to get the grouping to work as you outline above, you'll need to set the display style to 'html list', and then under the style options, set the grouping field to the partner name. Once you have this working, you can edit the partner name field, and select 'exclude from display', which should then give you the desired format.
I ran into this same problem today. In an attempt to troubleshoot, I made a new empty installation of Drupal and added only my content type and the relationship. When I created the view I did not see the problem. Once I started adding modules back in I found that the theme developer in the development module is causing the problem. Try unchecking it and reloading your view. You might also be able to see this by leaving the item checked, opening up a different browser and going to the view as someone that will not see the theme developer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With