Creating and Deleting Custom Dashboard Pages

Permalink
I've build a couple of Add-Ons that have a dashboard configuration page. Currently, during installation, these Add-Ons create a new 'Left Navigation Menu Item' (not sure what else to call it). For now, they both reference the same 'Left Navigation Menu Item'.

/packages/my_package_1/controllers/dashboard/package_group/pkg_1_settings.php
/packages/my_package_1/single_pages/dashboard/package_group/pkg_1_settings.php

and
/packages/my_package_2/controllers/dashboard/package_group/pkg_2_settings.php
/packages/my_package_2/single_pages/dashboard/package_group/pkg_2_settings.php


Both of these packages will create a left navigation menu item labeled 'Package Group' and will be subpages of that menu item.

Still with me?

Here is the workflow:

1. Package_1 is installed and creates the 'Package Group' menu item
2. 'Package Group' is associated with package_1
3. Package_2 is installed, but sees the already created 'Package Group' menu item
4. 'Package Group' is not associated with package_2
5. I click on 'Package Group' in the left navigation and see both 'pkg_1_settings' and 'pkg_2_settings' sub-pages.

So far all is well with the installation.

6. I remove 'Package_1' from the site, which also removes the 'Package Group' menu item. There is no longer access to 'pkg_2_settings'. <--This is the issue

Is there a way to get around this issue? I don't really want to create multiple left navigation items that only contain one page, if I can help it.

Can new pages be added to existing, core left navigation items? Such as 'Sitewide Settings'?

SkyBlueSofa
 
Mnkras replied on at Permalink Reply
Mnkras
it is possibly to add to things like sitewide settings, you can't add to the add functionality one, though

as for the problem, im not sure,