I would like to create a complex registration page which depands on a user type.

So, I have installed User types and Profile (Core)...

This lets me create a user type and to attach them fields i wish to display in registration form for a specific user type.
For example:

Artist:
-field nick
-field website
-field musical instrument

Normal User:
-field nick

Every thing is fine up to here.

My issues:

1) Is it possible to add a cck content type as those listed in (admin/user/profile) ? i do not wish to user content_profile, unless it is possible to integret those with a module like User Types.

2) Is it possible to make the registration as a multi step page? I know how to do that in a custom module but don't know how to approach it when using User Types module.

3) When an artist register, what is the best way to create another content type (cck) which has a user_refernce field and attach those together?

Regards,

Edited by WorldFallz - moved to appropriate forum.

Comments

WorldFallz’s picture

The best way to do this is with the http://drupal.org/project/content_profile and http://drupal.org/project/autoassignrole modules rather than core profile + user_types. you can then use http://drupal.org/project/pageroute to create multistep forms. You might also want to try the http://drupal.org/project/multistep module.

shawn_smiley’s picture

The way I'm handling it our site is to do a custom template for the registration form and then use JQuery to simulate a multi-step form (i.e. hiding/displaying sections as needed). That way I didn't need any extra modules such as content profile.

I then put a bit of logic in my module code to assign the user account to the correct roles based on the options the user selected during registration.

Here is how you can create a custom template for your registration form(I'm using a zen subtheme here):

In your theme template.php file, add the following code to theme_theme():
$hooks['user_register'] = array(
'arguments' => array('form' => NULL),
'template' => 'user-register', // this is the name of the template
);

Next create a new template file named "user-register.tpl.php" in your theme folder.

Layout your registration form anyway you want to in this template file. I also created a user-register.js file that contained the jquery for hiding/showing form sections as the user goes through the registration process.

Thanks,

Shawn

maozet’s picture

So, if i understand you right i should add fields using Profile (Core) module and then just manipulate those based on user selection using a custom template.

What about if i want to add a cck field like Location? Is it possible to add a cck field?

WorldFallz’s picture

Is it possible to add a cck field?

Not to core profiles-- that's exactly why the content_profile module was created. If core profile fields provide what you need then you can use the core profile module. If you want cck profiles then you need to use content_profile.

maozet’s picture

How do i dispaly different content_profile for different user?
Lets say my first registration page is

select registration method:
1) Normal user
2) Business user
3) Contribute user

then i need the display different fields for each type.
How do i do it with the above modules?

esmailzadeh’s picture

i have same problem maozet

down999’s picture

Hi maozet, please how you solved your solution???

People, exist some easy way how do two registration forms with different fields???
I'm trying to use content_profile and auto assign role, now I see two registration forms, but they are identical. I don't know how make it with different fields.
Why is not possible to use core profile module, where I just say, that this fields is for profile 1 and another for profile 2? Or is some module what could do it???
Or some tutorial for dummies???

I'm new in drupal, and I love it. Good job!

sorry for my english.
Thank you a lot!!!!

WorldFallz’s picture

Just create another content type for the other type of profile and set it to be a profile content type on the content_profile tab.

down999’s picture

WorldFallz thank you for your help... I created two content types with a profile content type settings, but still the same.
Nevermind:
I have found here on the forum, one excelent module "user_types". This module workes with the core profile module. So exactly what I have looking for. What is bad, it's just in dev state.