Welcome,
Guest
|
|
Hello there,
Let me start of by saying what a great extension this is. I ran into the following problem when using this plugin. The joomla menu module assigns the class 'active' to a menu item when rendering the menu_items and $item->id == $active_id. The problem that arises now is that $item_id for the home menu has a different id than $active_id when you are on the home page. $item_id for the home menu is from the 'real menu' and $active_id is from the dummy menu. I manually fixed this by adding the following to mod_menu.php: if ($active_id == '117' || $active_id == '118' || $active_id == '119') { $active_id = '101'; } where: 117,118,119 are the dummy id's and 101 is the 'real' id. I tried to think of an automatic workaround, but couldn't think of a quick way. Perhaps you could integrate this in your future releases. As someone else asked before, I would also like to see an option to make the language switcher not go to the translated homepage but translate the current page. Kind regards, Nick Burgmeijer |
The administrator has disabled public write access.
|
|
Yes, we are already working and we are making good progress. Once we have some more time we should conclude.
|
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie Help us by voting our extensions on Joomla.org: JiFile JoomPhoto Mobile Easy Language
The administrator has disabled public write access.
|
|
Nice nice,
Glad to see it adressed. This plugin is a nice 'lightweight' replacement for Joomfish. I'll wait for the next release then Nick |
The administrator has disabled public write access.
|
|
Just made a quick and dirty change for the class='active' problem.
This fix is ID-independent. Edit the following file: \modules\mod_menu\mod_menu.php replace the following line: $active_id = isset($active) ? $active->id : $menu->getDefault()->id; with: if (isset($active)) {
if ($active->home != 0) {
$active_id = $menu->getDefault()->id;
}
else {
$active_id=$active->id;
}
}
else {
$active_id=$menu->getDefault()->id;
} |
Last Edit: 13 Jan 2013 13:55 by Nick Burgmeijer.
The administrator has disabled public write access.
|
If you not change browser settings, you agree to it. Learn more