Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   Eximium (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=278)
-   -   Incorrect menu selected in mobile menu (http://www.youjoomla.com/joomla_support/showthread.php?t=14218)

achartier 05-25-2016 11:44 AM

Incorrect menu selected in mobile menu
 
When using the mobile menu the yjsg_mobilemenu.php file incorrectly sets the selected menu item when the active menu is of type alias. The selected menu returned from the getActive() call is the Alias menu ID not the menu ID of the menu item so when the function tests to set the selected menu it never finds it and it defaults to the top level menu item.

An easy fix for this is to change the case for alias to the following:

PHP Code:

            case 'alias' :
                
$aliasID $menuitem->params->get('aliasoptions');
                
$menuitem->flink 'index.php?Itemid='.$aliasID;
                if (
$aliasID == $SetActiveId)
                    
$selected ' selected="selected"';
                break; 

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: 5.x

PHP version: 5.x

Link to installation: not required

Have you edited any files? If yes tell us which ones.: No

Is this personal or client website?: Personal

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: 5.x

PHP version: 5.x

Link to installation: not required

Have you edited any files? If yes tell us which ones.: No

Is this personal or client website?: Personal

achartier 05-25-2016 11:45 AM

Also, you may wish to check the title setting at the top of the file as it will also return the wrong title when an alias menu item is the active item.

arefund 05-27-2016 07:43 AM

Hello achartier.
The issue with selected menu item was fixed and added in the latest versions.
Please download the latest framework version and re-install it, also please advise what version are you using.

achartier 05-27-2016 09:03 AM

I am running versions 2.2.3 which is the current version. I do not see a correction for this issue in module plugins/system/yjsg/includes/layouts/yjsg_mobilemenu.php. Did you perhaps make a change elsewhere?

arefund 05-30-2016 09:58 AM

Hello achartier.
Can you please post your site link so i can check for it.
Might be that you have some redirect links, that are crashing the mobile menu.

achartier 05-30-2016 10:01 AM

Thanks Arefund but at this time I have had to migrate away from Eximium to Helix due to the conflicts between Eximium and Fabrik. I no longer have a site where you can test.


All times are GMT -4. The time now is 08:10 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.