By marklame1


2019-01-11 20:53:53 8 Comments

I'm trying to create a relation in D8 between a counselor and clients. The counselor would have to record counseling hours for each client. I've looked at the group module, even building the relation using RedHen CRM. Just curious, anyone have suggestions?

1 comments

@prkos 2019-01-11 22:50:13

You seem to need two relations/references; one to connect clients with counselors, assuming that doesn't change for each new session, and then a session node (Session Content type) related to either the client or the councelor, depending on what makes more sense in your case.

Or you might orient it around sessions, where you have two user reference fields, one to the counselor and the other to the client. Although that seems less likely to make sense.

If the hours is the only thing that needs to be recorded maybe you can get away with only the reference between counselor and clients, with the added Hours field to the reference field, with unlimited values so with each new session another value is added. You can use Views to summ them up.

You haven't said anything about privacy and permissions requirements and how the data is maintained. There are modules that can control access through references made between entities. Maybe explore that to find the right combination for you.

Group module can also be used, although it may be an overkill depending on your requirements.

Which modules/structures to use and build becomes obvious once you have all your requirements clarified.

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] How to attach a single node multiple times to an entity (e.g. badges)?

  • 2014-10-10 07:23:45
  • Paul
  • 140 View
  • 2 Score
  • 2 Answer
  • Tags:   7 entities

0 Answered Questions

Add a relation via Entityform

  • 2015-09-18 15:01:59
  • atg963
  • 23 View
  • 1 Score
  • 0 Answer
  • Tags:   entities

0 Answered Questions

1 Answered Questions

1 Answered Questions

1 Answered Questions

[SOLVED] Access field on relation from rule

  • 2013-09-09 14:40:39
  • Eric Jakstadt
  • 454 View
  • 0 Score
  • 1 Answer
  • Tags:   rules entities

1 Answered Questions

[SOLVED] How do I create a link to add a new entity form from the referenced entity

  • 2013-06-11 21:55:33
  • user379468
  • 292 View
  • 1 Score
  • 1 Answer
  • Tags:   theming entities

1 Answered Questions

[SOLVED] create relation between two nodes using the relation module

  • 2012-05-23 17:29:29
  • Jayaram
  • 1955 View
  • 1 Score
  • 1 Answer
  • Tags:   7 nodes entities

1 Answered Questions

[SOLVED] How can I create a friendship that must be approved with the Relation module?

  • 2012-03-25 02:30:43
  • Patrick Kenny
  • 191 View
  • 0 Score
  • 1 Answer
  • Tags:   7 entities

Sponsored Content