I want to add an administrative menu to the right-hand sidemenu of the dashboard (over where you find Settings, Plugins, and Users). I've managed to find the right hooks to manually add a link, and I can get the link to reference my plugin settings page.
My problem is adding submenus to this new menu, and getting WP to recognize it as the current page. I'm using the following code to create the link:
function rl_add_pages() {
echo '<li><a href="admin.php?page=rlplugin/rlplugin.php">RLPlugin</a></li>';
}
add_action('sidemenu', 'rl_add_pages');
It renders the basic setting page just fine, but I only get the submenus if I also add it as a top-level admin menu through the standard admin_menu hook.
Any suggestions?