1

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.

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

1 Answer 1

0

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

and then here

enter image description here

0

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.