customize each register pages for role paths

trupal218 - October 22, 2009 - 13:13
Project:Auto Assign Role
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

eosrei - October 31, 2009 - 00:27

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.

 
 

Drupal is a registered trademark of Dries Buytaert.