I would need to add an attribute to a user_reference field that "explains" the type of relationship.

Example: My users are music players and the play in different groups. The same user can play guitar in one group and the bass in another group.

Groups are my nodes and I can link them with the players. While I am linking them, I would also like to set the instruments they play in that group.

Group 1 - Player1|guitar Group 2 - Player1|bass Group 3 - Player2|guitar

Probably a way to do that is using "field collection"; is there another way?

  • 1
    What is wrong with field collection? I think it's the best way to do this. – Huelfe Sep 28 '15 at 9:00
  • I don't really like field collection. In the past it happened to me that I had some problem with views and other modules. Consequently usually I try to avoid it. – lorenzo Sep 28 '15 at 9:12
  • @Huelfe I agree. The alternative is to create a node bundle for relationship using fields: user, instrument, groups and pull that in but that is very cumbersome. – J. Reynolds Sep 29 '15 at 4:47

Alternatives could be Paragraphs, Multifield, Inline Entity Form or Double Field.

| improve this answer | |
  • Why these? Please provide more info. – leymannx Sep 28 '15 at 10:00

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.