For now when I try to add more than one registration field for a node type, I get "entity can only have one registration field."

Consider the following scenario:

I have courses, for which trainers and trainees can register.

The course is limited to 5 trainers and 12 trainees.

People with the role "trainer" can register as trainers.

People with the role "trainee" can register as trainees.

I'm setting this as a support request, but if there is no way of doing this, I'll move it to "feature request".

Thanks!

Albert.

Comments

alberto56’s picture

Category: Support request » Feature request

Hi,

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

john.oltman’s picture

Version: 7.x-1.x-dev » 3.0.x-dev
Status: Active » Closed (duplicate)
Related issues: +#1565504: Support multiple registration fields per host entity