[How-To] Add entries to AdminCP Navigation Menu
The AdminCP Navigation is now controlled through XML files.
To add custom entries, you must create a new file cpnav_yourhack.xml and place it in directory includes/xml. This XML-File constist of 6 important tags:
Example HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?> With Beta 3 a new parameter displayorder has been introduced. This parameter is valid for Tags navgroup and navoption. This way it is possible to control in which order the Navgroups and Links will be displayed, and you can also add custom Links to existing Navgroups. To do so, your navgroup must have them same displayorder and Phrase Varname as the existing group: HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?> To find out the Displayorder for existing groups, take a look at cpnav_vbulletin.xml. This How-To is (C) 2005 by KirbyDE and you are not allowed to redistribute it in any way without my explicit consent. |
Thanks..
|
So, in doing this, does this take care of the issues with no hooks being included in the AdminCP navigation menu? I know that it does not take care of not having hooks in the individual modules, just refering to the main selection menu.
|
Quote:
The bummer here is that hack authors can't specify which existing group to add a menu item under (for instance, adding a new PM-related funtion or feature under the existing PM AdminCP tree) nor can hack authors specify a group that their hack should appear above or below. A hack author might want to add "Clans" right below Usergroups or Promotions. I'm guessing that new menus created with this XML technique appear way at the bottom? Of course to add all the functionality I am talking about, the admincp XML file would need to be cached in a "merged" state. |
Thanks KirbyDE in how to do this...
|
Quote:
It is bizzarre to be sure... I hope the Devs listen to the requests and create some kind of display order feature for the CP Nav ;) Satan |
Quote:
|
Aha - Glad someone knows ;)
Satan |
so kirby what changed in vb 3.5 beta 3? are you going to update this
|
Updated :)
|
All times are GMT. The time now is 06:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|