Skip to Content Skip to Menu

"Smart" login redirection?

  • bascherz
  • bascherz
  • OFFLINE
  • Posts: 256
  • Thanks: 30
  • Karma: 11
1 month 2 weeks ago #344038 by bascherz
Replied by bascherz on topic "Smart" login redirection?
Hmm...that's definitely an idea. However, currently there is a single menu item that is just an icon of a human bust silhouette that opens a login modal. The site landing page doesn't have a Spanish version, though GTranslate is active on the entire site, so they could use that to get started. But I was thinking just take them to the Spanish part of the site after logging-in. That's actually where it starts to matter. But this does give me another option, so thanks!

Bruce S - Vienna, VA

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • OFFLINE
  • Posts: 50569
  • Thanks: 8662
  • Karma: 1473
1 month 2 weeks ago #344040 by krileon
Replied by krileon on topic "Smart" login redirection?
That's not typically how you'd multi-lingual Joomla. Normally you'd have the language switcher plugin enabled and the language module setup so they can toggle language. Next you'd have menu items for each language and modules (if they're language specific) for each language. You shouldn't need anything beyond that then as you'd have proper multi-lingula menu and module setup going on.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • bascherz
  • bascherz
  • OFFLINE
  • Posts: 256
  • Thanks: 30
  • Karma: 11
1 month 2 weeks ago #344041 by bascherz
Replied by bascherz on topic "Smart" login redirection?
I have both the "Language Filter" plugin configured and enabled to auto-switch based on browser language and the "Language Switcher" module published and positioned to the right in my Gantry (template) Navigation section. I don't see any flags unless I also publish the GTranslate module in that same position. I fear that GTranslate will conflict with those Joomla-native extensions, since GTranslate is also setup to use the browser's preferred language.

We do have plans to duplicate the English areas of the site in Spanish, but what I was looking for was a way to use a single login dialog to redirect a "Registered" user to the language-correct landing page after login. It needs to be after login because, until then, we don't know if this is a "Student" (the only use for the "Registered" access level) or one of the site's authors or administrators.

Bruce S - Vienna, VA

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • OFFLINE
  • Posts: 50569
  • Thanks: 8662
  • Karma: 1473
1 month 2 weeks ago #344042 by krileon
Replied by krileon on topic "Smart" login redirection?
You shouldn't need a Google translate module unless you don't want to use Joomla's multi-lingual functionality. Browsers these days also generally come with translation support built in. So that may not be necessary at all anymore.

We do have plans to duplicate the English areas of the site in Spanish, but what I was looking for was a way to use a single login dialog to redirect a "Registered" user to the language-correct landing page after login. It needs to be after login because, until then, we don't know if this is a "Student" (the only use for the "Registered" access level) or one of the site's authors or administrators.

Only way to do that outside of setting up the full Joomla multi-lingual menu and module systems is CB Auto Actions. Not aware of a way for Joomla itself to handle that otherwise.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • bascherz
  • bascherz
  • OFFLINE
  • Posts: 256
  • Thanks: 30
  • Karma: 11
1 month 2 weeks ago #344044 by bascherz
Replied by bascherz on topic "Smart" login redirection?

You shouldn't need a Google translate module unless you don't want to use Joomla's multi-lingual functionality. Browsers these days also generally come with translation support built in. So that may not be necessary at all anymore.
Joomla's multi-lingual functionality is limited to whatever phrases are in the language files that come with Joomla and (maybe) any extensions that have them and they only apply to labels, prompts, built-in phrases, not actual content. We will implement content in the areas of the site that need to be in two languages in both languages and just need a way to get the users who speak the respective language(s) directed to the right place.

As far as I can tell, Joomla's multi-lingual functionality does not include having different menus selected automatically based on a user's browser language or profile language. I cannot see that the built-in language module and plugin do anything, and setting up the Language Switcher is bizarre; makes no sense to me. Furthermore, even though I have both EN-US and ES-US languages installed, I can only select either of them (in my user profile) as my backend language. My only choice in my user profile for frontend language is "Default".

In case you can't tell, this is my first foray into a (partially) multi-lingual site.

I appreciate all feedback. Thanks in advance for that.

Bruce S - Vienna, VA

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • OFFLINE
  • Posts: 50569
  • Thanks: 8662
  • Karma: 1473
1 month 1 week ago #344049 by krileon
Replied by krileon on topic "Smart" login redirection?
Yeah the language switcher can be complicated to setup. Here's what you'll want to do first.

1. Navigate to System > Manage > Plugins and type in the search input "language"
2. Now publish "System - Language Code"
3. Then publish "System - Language Filter"
4. Navigate to System > Manage > Languages > Install Languages
5. Install any languages you want your site to support
6. Navigate to System > Manage > Content Languages
7. Be sure every language you want to support has an entry there and is published as well as public access
8. Navigate to Menus > Your Menu Type
9. Edit your menu items that are multi-lingual and define a language other than "All"
10. Click "Associations" to start creating associated language menu items (this is how you'll have a menu per-language)

Menu items that aren't language specific can just remain as "All" language. Modules are a bit more straight forward. You'd just need to make duplicates where language matters and set their language parameter.

Joomla should automatically handle the switching itself due to the associations. Content Languages is what makes languages available in the user dropdown and in the language switcher module.

At any rate you're of course able to just use CB Auto Actions for the custom login redirects. Joomla would only be able to handle the language based while CB Auto Actions can condition off a wide range of things.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum