By lordrt21 on
Hello again
I've installed the user-selectable role module and login destination module, however, how can I make a user with a specific role redirect to a specific page when he/she enters his username and password to login?
I created a role web-client for those specific users, and have admin also as user, but not defined as role.
Comments
Questions like this are best
Questions like this are best asked in the relevant module support queue. That's said, you'll want to tailor this to meet your needs for Login Destination:
thanks, but where to put this
thanks, but where to put this code? Login destination has 2 textareas, one for redirect condition and one for the URL to redirect, or should I modify a php file in the module itself?
That's the URL destination.
That's the URL destination. The condition is Always. Most projects I use Rules, but LD offers greater flexibility if you need it.
You can either write your own
You can either write your own module to do this, and use the your_module_name_form_alter() hook, or take a look at the Rules module, it's very comprehensive and will give you the control you need.
thanks Rules did the trick
thanks Rules did the trick