fbpx

Trick or Treat - 30% OFF - Coupon Code: SCARY20 Grab the Deal!

Welcome, Guest
Username: Password: Remember me

TOPIC: Main Menu - Multilanguage

Main Menu - Multilanguage 2 months 1 day ago #23835

  • immcom
  • immcom's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Using IDs - may work fine but is very confusing.
Using your own code
$header_menu = strtolower('mainmenu-'.JFactory::getLanguage()->getTag());
for the language tag instead, it works perfectly and is much simpler.
So, on the files mentioned above need to change the line
$header_menu = $params->get('header_menu', 'mainmenu');
with
$header_menu = strtolower('mainmenu-'.JFactory::getLanguage()->getTag());
and on mobilemenu.php with
$header_mobile_menu = strtolower('mainmenu-'.JFactory::getLanguage()->getTag()); -if using the same main menu
The administrator has disabled public write access.
The following user(s) said Thank You: ozwest

Main Menu - Multilanguage 2 months 1 day ago #23838

  • ozwest
  • ozwest's Avatar
  • Offline
  • Premium Member
  • Posts: 89
  • Thank you received: 2
  • Karma: 1
Awesome if that just works so simply.

My question would be if that could be implemented as a standard into the template? What do you think Chandan?
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.276 seconds