i just want to add an entry to the left menu under Management. This was not a Problem:
Code: Select all
function plugin_test_install() {
global $config;
api_plugin_register_hook('test', 'config_arrays', 'test_config_arrays', 'setup.php');
api_plugin_register_hook('test', 'draw_navigation_text', 'test_draw_navigation_text', 'setup.php');
}
...
function test_draw_navigation_text ($nav) {
$nav["test.php:"] = array("title" => "test","mapping"=>"index.php:","url"=>"test.php","level"=>"1");
return $nav;
}
function test_config_arrays () {
global $user_auth_realms, $user_auth_realm_filenames, $menu;
/* register all realms */
api_plugin_register_realm('test', 'test.php', 'Plugin -> test: view', 1);
/* show additional menu entries if plugin is enabled */
if(api_plugin_is_enabled('test')) {
$menu["Management"]['plugins/test/test.php'] = "Edit Tree";
}
}
But when i click on my new left menu entry (with my own php-page) i want to see the left menu.
Code: Select all
<?php
$guest_account = true;
global $config;
chdir("../../");
include("./include/auth.php");
include_once("./include/top_graph_header.php");
print "No content Yet!";
include_once("./include/bottom_footer.php");
?>
What do i need to do, that this menu shows when i include top_headers.php?
/Ebini