Community & Support

Drupal pain.. Trying to create 2 registration forms- Forms API, or CCK ? and does email work

A BASIC need is to have more than one registration form for different types of users. In my site I need a registration for MERCHANTS and one for CONSUMERS. After pawing around the forums and seeing conflicting advice, I think I am going to try autoassignroles and content profile 'developer' modules. As I understand you need to do the following:

Make roles for example: "student" and "professor".
Make 2 content types, "Student personal data" and "Professor personal data". In those content types check "Use this content type as a content profile for users". Then tab "Content profile" will show up. In that tab check "Use on Registration" and choose for witch role.
Go on autoasigne role page. Click on "Asign from path". And fill the path field for each role for example : register/student for students.
And that is all.
Now you have 2 url addresses , one for each role, with different form fields for registration.

IS That correct? And if so, do I create the content types using forms API? And if so, does the emailing back to the registered user work? How? Don't I need to put an email address in my form and somehow TELL the registration ?

This seems like such a basic need and I've spent 3 days on it! Drupal is NOT fun.

Comments

We are basically in the same

We are basically in the same situation. We have website "members" and "suppliers". These "suppliers" need to go through a long form to create and load their information where "members" simply create a login and password. As we have not been able to get the above mentioned procedure to work, we have a single "user" registration using the standard Drupal method and a second webform for suppliers that once filled out we manually create a "supplier" account.

Please let us know if there is a trick to the above method that gets it to work as we were unsuccessful.

_

fyi this can now be done quite easily with the latest dev versions of the content_profile and autoassignrole modules.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.