I am trying to solve a problem with no luck:
I have 4 objects in Drupal:
- -Company user (role company)
- -Mod user (role moderator)
- -Node Project
- -Node Person (not a user entity)
Company user can add/edit/delete own Project nodes.
Mod user can a/e/d own Person nodes.
I would love to accomplish next:
Mod can reference (add) Persons to Projects. Example : Person A, Person B,... (both owned by Mod1 user) can be referenced (added) to Project 1, Project 2, etc. (or unreferenced/removed).
I imagine this as M:N relation, with two extra attributes - status (value 0-5) and author/createdBy (logged Mod1 user) to prevent mod users from editing/viewing others relation entities.
Next level is creating this by Rules module and Rules link module.
Lets have a View with Projects
clicking on a project should display a project page with list of referenced and unreferenced Persons owned by logged-in Mod user.
Persons list should be clickable (rules link) for adding/removing reference from actualy displayed project.
I had some progress with field collection module - was able to create relation entities with status, but cannot made it with Rules - dont know how to send two parameters in rule link (project id, person id) and create project page with persons lists (maybe as view blocks with contextual filters?)
Thank for any help, or idea.