Download & Extend

customize each register pages for role paths

Project:Auto Assign Role
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hello,

Thank you for this great module! It allows great flexibility in having different roles and different content profiles for those roles =)

I was wondering if it is possible to have a customized registration page for each path set for each role?
With 1 role I was able to use user-register.tpl.php, but I am lost now that I would like to have two different roles and each with its own content profile registering from different paths.

So I would like:
1) guest user registering as role A to go to 'user/register/a' and creates 'content profile a'
2) guest user registering as role B to go to 'user/register/b' and creates 'content profile b'

I would really appreciate any pointers!

Thank you very much in advance

Comments

#1

A method would be to check the page arguments "arg(0)" at the start of the user-register.tpl.php in an IF or CASE statement and display a different design depending on the URL the page is being accessed at. I'd like to see other responses to see if there is a more "Drupal" way to do it.

#2

@trupal218

Did you come up with a solution for this?

If so, I would be interested to hear your findings as I need something like this

Thanks

#3

Status:active» fixed

Hello,

I have a content profile called 'profile'. At the setting screen: www.example.com/admin/content/types/profile/profile
There is a section that is available when paths are designated in Auto Assign Role settings:
Use on Auto Assign Role paths:
The Auto Assign Role module gives you the ability to assign paths a user can register from for a role. After associating a path with a role your selection can associate this content type with a path.

The setting above with the recommendation in #1 of using the IF statement with URL arguments allowed me to use the template file to customize the page. Thanks

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#5

Status:closed (fixed)» active

Hi trupal218,
Could you please explain how you associated the content type with the path from Auto Assign Role?
Thank you.

#6

Status:active» closed (fixed)

Hello,

I believe I explained in #3. I don't use it anymore so if the modules changed I am not sure. Shoot me an email if you're still having trouble (a screencast/screenshots of you auto assign role settings and content settings pages or a link to your demo site with admin privileges would help).

nobody click here