Closed (duplicate)
Project:
Entity Registration
Version:
3.0.x-dev
Component:
Registration Core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2014 at 21:51 UTC
Updated:
11 Jun 2023 at 19:51 UTC
Jump to comment: Most recent
Comments
Comment #1
alberto56 commentedHi,
Looking at the code, it seems that registrations are linked to entities. If we want to have more than one registration type per entity, we would need to link registrations to fields within entities.
I'm making this a feature request.
Meanwhile, here is a somewhat convoluted workaround.
* Create two content types, course, and specialty
* Create a course "salsa", a specialty "salsa teaching assistant", and a specialty "salsa teacher".
* Create roles "salsa teacher", "salsa teaching assistant", with users for each role.
* Enable relation's relation_ui module, and relation_add.
* Go to admin/structure/registration/registration_types and add two registration types, "student" and "trainer".
* Go to admin/structure/relation and add a relation type course_to_specialty
* Add a "registration" field to the relation you just created.
* Add a "registration" field to the course content type.
* Add a "relation add" field to the course content type.
* Go to your "course" node and add a relation from it to the specialty "salsa teacher", and another to the specialty "salsa teaching assistant".
* In the course itself, you can use the relation type "student".
* In each of the courses' relations, you can use the relation type "trainer".
* Set the permissions correctly.
This will allow you to have several registration types per node.
Albert
Comment #2
john.oltman commented