Share » Forums » Setup & design » Advanced redirection after login

Advanced redirection after login

Advanced redirection after login

Thursday 23 July 2009 10:04:21 am - 4 replies

Author Message

Max Keil

Thursday 23 July 2009 5:26:30 pm

Hi John,

I tried it out and it works.

Simple 4 steps:
1. Edit the User or User Group class and define new attribute "textline"
2. Edit your group or user and set the attribute destination
3. Add the INI-Settings into site.ini.append.php
4. Clear the caches

It's already described in the article, if you trying to access a restricted area (Kernel 1 - Error), you would be redirected to it after login instead of the object-attribute-value. So you should run /user/login to check it out.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

John Smith

Thursday 30 July 2009 4:06:21 am

I dont know mate why it not working for me......After login the user is going to the page which he/she visited last not mentioned in the user group class.

Check this:

http://ez.no/developer/forum/general/point_of_view_about_advanced_redirection_after_login

Anybody else....

André R.

Thursday 30 July 2009 4:44:21 am

You can overcome this by setting the post parameter 'RedirectURI' to '/' in your user/login.tpl template, this will make the user/login code ignore the session variable but still validate it as empty further down the code when it decides to read those pr user / user group, ref:

// Determine if we already know redirection URI.
$haveRedirectionURI = ( $redirectionURI != '' && $redirectionURI != '/' );

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

John Smith

Thursday 30 July 2009 6:44:59 am

*** Star ****, It worked!!!!

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu