Code: Select all
$menu = array(
"Create" => array(
"graphs_new.php" => "New Graphs"
),
"Management" => array(
"graphs.php" => array(
"graphs.php" => "Graph Management",
"cdef.php" => "CDEFs",
"color.php" => "Colors",
"gprint_presets.php" => "GPRINT Presets"
),
Code: Select all
$wm_menu = array(
'plugins/weathermap/weathermap-cacti-plugin-mgmt.php' => "Weathermaps",
'plugins/weathermap/weathermap-cacti-plugin-mgmt-groups.php' => "Groups"
);
$menu["Management"]['plugins/weathermap/weathermap-cacti-plugin-mgmt.php'] = $wm_menu;
So I looked into html.php to see how it's drawn, and it seems that I might need to have a second entry in $user_auth_realm_filenames[] so that the submenu is drawn. I've tried that, but it still doesn't work.
How do I get the submenu to show up? Ideally I don't really want a whole second page, but just actions within weathermap-cacti-plugin-mgmt.php, but having it work at all would also be nice.
I'd also like it so that the one user realm (manage weathermaps) allows access to both pages.
Any suggestions?