Different user types with different attributes

Permalink
Hi,

I need to have two different user types which will have different properties/attributes that they need to fill during registration and on their profile pages. The users will also have different rights on the site (some pages are only accessible to one user type).

One way to implement this is using user attributes. The problem here is that I can't select the attributes depending on the user type. For example, I would add the attribute 'User Type' as a selection list and depending on the user's choice the corresponding specific attributes would then be displayed for the user to fill.

Any suggestions and hints the best way to develop this functionality?

Thanks.

 
haykelbj replied on at Permalink Reply
Asked on IRC and here is the discussion:

Mnkras-Laptop: you would need to do a bit of programming,
Mnkras-Laptop: and use a switch
|ucas: create all user attributes via the dashboard and then create a custom registration page for each user type
|ucas: and a different profile page for each user type
haykelbj: the only attribute to set as required in the dashboard is the user type, right?
haykelbj: I ccan also add the attributes programmatically, say during the installation of a package?
|ucas: yes, but you probably won't need to even require the user to select that
|ucas: if you have two different reg forms, you can set that behind the scenes

Any comments and suggestions are welcome.
Mnkras replied on at Permalink Reply
Mnkras
oh noes the quoting!