Re: [Dave] Curious Question...
Hey guys, I was having the same problem with need some organization or grouping of the sections in the left menu in the newest v1.23. So I came up with a not too complicated workaround.
I wasn't using the Category Section Editors so I found a use for them.
I created a Category Section Editor for each of my Top Level Categories or Groups. Then I dragged and dropped each Section editor under the proper Top Level Category (category section editor). The next step was to get the Top Level Category links to look different from all of the other section editor links, which can be done by following the instructions below.
In /lib/menus/header_functions
add
$thisMenu['menuType'] = $schema['menuType']; //RBD
just below
$thisMenu['tableName'] = $tableName;
in the getMenuList function
add
'menuType' => $menuOption['type'] //RBD
just below
'tableName' => $menuOption['key'],
comment out the line
$menuLinks .= "<li><a href='?menu={$row['tableName']}' class='$menuClass'>" . htmlspecialchars($row['menuName']) ."</a></li>\n";
and add below it
//RBD custom category menu link formatting to be used to define top level categories.
if($row['menuType'] == 'category'){
$menuLinks .= "<li><a href='?menu={$row['tableName']}' class='$menuClass' id='menu" . $row['menuType'] . "'>" . htmlspecialchars($row['menuName']) ."</a></li>\n";
} else {
$menuLinks .= "<li><a href='?menu={$row['tableName']}' class='$menuClass'>" . htmlspecialchars($row['menuName']) ."</a></li>\n";
}
}
//RBD END
In /css/ui.css add the following style or customize it to fit your preference.
#menuBar a#menucategory {background-color: #000;}
#menuBar a:hover#menucategory {background-color: #000;}
-------------------------------------------
Ryan Robillard
RobiDigital Web Studio
Design & Development
www.RobiDigital.com