2

I'm trying to implement a Project Member relationship but I don't know how to do that. I have as a content types: Project, Member and Position as the attached UML diagram shows. My doubts are about the team field in Project.

uml diagram of database structure

I need to relate team members with a certain positon (which can be different from default position) to the Project. One way would be to create another content type called ProjectMember, but I'm trying to avoid that.

What would be the fastest vs the most elegant way to implement that?

Is Field Collection module a suitable way to go?

1
  • I am glad that my answer was useful for you, good luck in your projects Commented Jul 8, 2016 at 17:37

1 Answer 1

2

This is one way:

  • Project (Content Type)
  • Member (Content Type)
  • Position (Taxonomy - Because maybe you want to classify)

In Member you will have a field that is a Term Reference to Position.

In Project you will have a Field Collection named Project Position, which will have an Entity Reference to Member and a field that is a Term Reference to Position.

4
  • 1
    What exactly do you mean by "Project Position (The Collection)"? I'm confused ... Commented Jul 22, 2016 at 17:24
  • 1
    @Pierre.Vriens Project Position is the Field Colecction field, I edited the answer. If you need more info, please let me know. Commented Jul 22, 2016 at 17:39
  • Paragraphs seems to replace Field Collection module. How could I implement your solution using Paragraphs?
    – geraldo
    Commented Feb 7, 2017 at 16:53
  • @geraldo is a little different because you need to know how paragraph works, you can check some articles and made the same steps with paragraph. evolvingweb.ca/blog/… webwash.net/… Commented Feb 7, 2017 at 17:15

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.