Forums / Developer / Save User language
Julien Plesniak
Monday 10 December 2007 12:45:12 am
Hello,
I have a website (in ez 4.0) with 2 languages. I want that the user choose his language when he register. I want that when the user login, it was redirect to te correct siteaccess that he had choose.
How to do this?
Thanks for help
ps: sorry for my english
Friday 14 December 2007 5:51:30 am
no idea?
André R.
Friday 14 December 2007 7:35:27 am
Add a drop down attribute on the user class, and create a custom login handler that redirects the user when he/she logs inn.
There are many ways to do this, this is just one.
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
Thursday 20 December 2007 12:44:28 am
Hello, thanks André.
For the custom login, i have found this:
http://ez.no/ezpublish/documentation/configuration/configuration/login_handler/how_to_make_your_own_handler
In the function login, i can test variables of the user but the function return a boolean, so how to redirect to the correct website?
Thanks