I have 2 content types. For example UserGroup and User. UserGroup has Entity reference field and there are unlimited of Users. I would like to show in views something like this:

  • User group name

    • User 1
    • User n
  • User group name

    • User 1
    • User n

and for the User their fields (contact, birthday etc.)

Now I set relationships field_users (which is set in UserGroup) and Format -> Show -> Fields. There are Name (UserGroup), Name (User via relationship) but I see:

  • UserGroup1
    • User1
  • UserGroup1
    • User2

and etc.

Please tell me how can I fix it. Thank you.

  • you want UserGroup1 - User1, User2 ... instead of UserGroup1 - User1 UserGroup1 - User2 ? is that what you're asking? – No Sssweat Mar 9 '16 at 7:56
  • Yes, exactly. I formatted my post. – Slechtic Mar 9 '16 at 8:12
  • 2
    Group by User group name in Views format settings – J. Reynolds Mar 9 '16 at 8:23
  • I tried aggregate: Aggregation type: Group result together Group column: value Group columns: value but with same result – Slechtic Mar 9 '16 at 8:34

Select the group level in Views here: enter image description here

and then here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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