tags:

views:

332

answers:

3

What we need: redirect to each user's specific page after their loggin.

What we have tried: Login Toboggan module: can be direct to each user's profile page, however we do not where to define specific node, i.e node 15 for user David. If you have experience on this, please advise.

Nodeacccess: generic access control defined to each content type.

Many thanks for your kind help. Happy Autumn and Monday

+5  A: 

I'd recommed the Login Destination module. You can use PHP to set specific nodes to redirect to per user. The documentation on that page is pretty clear, but in case you need some more help, your PHP snippet will end up looking something like:

global $user;
switch $user->uid {
  case '1': //for user 1
    return 'node/1'; //to redirect to node #1
  case '2': //for user 2
    return 'node/10'; //to redirect to node #10
  // and so on...
}

Hope that helps!

EDIT: Just found this, might be helpful.

theunraveler
Thanks so much for your answer. How can I vote for you?
LoveLife
Just click the checkmark next to my answer. See http://meta.stackoverflow.com/questions/5234/accepting-answers-what-is-it-all-about for more info.
theunraveler
A: 

Try using Login Destination Module.

vaibhav
+1  A: 

Nah, triggered rules have this built in.

Select condition when user logs in, select action direct user to page, done.

Kirk Hings

related questions