As a first step towards building my own module as an add on to Contentbox, I just followed the instructions in the documentation for adding a new admin module to Contentbox. When I get to the part about adding a new menu item it does not work. The docs say:
- Fired when the module is registered and activated.
// Let’s add ourselves to the main menu in the Modules section
var menuService = controller.getWireBox().getInstance( “AdminMenuService@cb” );
// Add Menu Contribution
menuService.addSubMenu(topMenu=menuService.MODULES,name=“mySecrets”,label=“my Secrets”,href=“#menuService.buildModuleLink(‘mySecrets’,‘home’)#” );
When I activate my new module the new item does not appear in the Modules menu.
I looked at the code in the AdminMenuService.cfc but I can’t see anything obvious that looks wrong.
Can anyone point me in the right direction please?