Forums / Developer / Save User language

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Save User language

Author Message

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

Julien Plesniak

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

Julien Plesniak

Thursday 20 December 2007 12:44:28 am

Hello, thanks André.

For the custom login, i have found this:

http://ez.no/Exponential/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