Posted: Thu Oct 08, 2009 10:42 pm Post subject: Need some way to make additional/new admin tools show up
It appears that the admin menu is completely hard-coded so that if I have an additional admin/modules/* tool, it doesn't show up.
For example, Sommaire has its own Menu applet up in the ACP, the site admin portion. I turned off my upper site admin section and then realized that I could then not manage my Sommaire menu.
I know that you have plans for more configurability of the menu, but I just wanted to make sure this specific nuance was known.
The problem is that the current mechanism for displaying the admin menu is limited by design to display the link the in the format displayed on the admin page. We'll have to strip out that link to rebuild it with nukeNAV. _________________
Actually...it's done by a function. We can modify that function to use a global variable (or new parameter) to choose between traditional admin menu and nukeNAV, but it will need to support both on the admin page...
Not quite following just yet, but will as I try and work through my upgrade this morning. So, with that preface (i.e., don't know what I'm talking about yet - lol), I had added to rnconfig.php the additional switch which controls whether the traditional admin piece is displayed or not. Could that be used?
admin.php contains a function called adminmenu, which is called by the modules/(module)/admin/links.php script when it's included in admin.php.
Options?
- hard code
- override the adminmenu function in nukeNAV, but don't display admin menu on admin page
- modify the adminmenu function to support both nukeNAV and admin menu (this is essentially the approach used by NuNuke's Advanced Admin Index Status addon) and create a copy of this function to be used by nukeNAV if not on the admin page
- create a new file for the adminmenu function that can be included by both nukeNAV and adminmenu that has logic to support both
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum