Admin menu - after load page no use active ellement correct

Started by vdweb.cz, May 13, 2024, 19:46:54 PM

Previous topic - Next topic

vdweb.cz

Hi,
VM with  vmadmin_4.2.10.11010

administrator/templates/vmadmin/html/com_virtuemart/sublayouts/menu.php

When you go to Virtuemart and load for example
administrator/index.php?option=com_virtuemart&view=category

menu on left in VM dont show active menu

line 65:
if ($link['view'] == $currentView) {
$activeParent = "uk-active uk-open";
//break;
}


REPLACE WITH THIS:
if ($link['view'] == $currentView AND $link['task'] == $task) {
$activeParent = "uk-active uk-open";
break;
}



or if there is reason for break; had commented use this after line 70 (add new foreach):


foreach ($item ['items'] as $i => $link) {
if ($link['view'] == $currentView AND $link['task'] == $task) {
$activeParent = "uk-active uk-open";
break;
}
}

After that changes when you click in admin to any pages... menu show you active menu and his childs...