Tech List

[index] [prev] [next] [options] [help]
See the Mailing Lists Page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

Re: [EP-tech] determining which screen to display after login

From: Tim Brody <tdb01r AT ecs.soton.ac.uk>
Date: Tue, 01 Jul 2008 12:34:27 +0100


Threading: [EP-tech] determining which screen to display after login from david.lewis AT utc.fr
      • This Message

*** http://www.eprints.org/tech.php/id/%3C486A1643.1040706%40ecs.soton.ac.uk%3E
*** EPrints community wiki - http://wiki.eprints.org/

David Lewis wrote:
> *** 
> 
http://www.eprints.org/tech.php/id/%3CEMEW-k5OAe780b82b2fc1395755518b1bcecacad214-48621276.6080600%40utc.fr%3E 
>
> *** EPrints community wiki - http://wiki.eprints.org/
>
> Quickie : what's the best place (EP 3.1) to determine the screen that 
> users see after a successful login? I'd like it to depend at least on 
> user or user type (Review for editors, Admin for admins, etc.) and 
> possibly also on dynamic criteria (for example, Items if inbox not 
> empty).
Hi David,

Anything below cgi/users/ goes through Apache::Login which requires the 
user to login before they are shown the page they requested.

The Login link comes from phrases/dynamic.xml.

I think what you mean is to change the Login link to link dynamically.

You could change the Login link to point to /cgi/users/login and modify 
the login script to redirect to different places depending on the user type:

if( $session->current_user->get_type eq "admin" )
{
$url = $session->get_url( host => 1, path => "cgi" ) . 
"/users/home?screen=Review";
}
etc.

Cheers,
Tim.


[index] [prev] [next] [options] [help]