RE: [coldbox:17520] Extending Contentbox Admin

Yep. I would recommend checking out some of the ContentBox modules that are already out there to see how it’s done:

Here’s a simple module that adds a menu contribution:

The code you want to look for is in moduleConfig.cfcin the onLoad() method:

// 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 = “LetItSnow”, label = “Let It Snow”, href = “#menuService.buildModuleLink(‘LetItSnow’,‘settings’)#”);



ColdBox Platform Evangelist
Ortus Solutions, Corp

ColdBox Platform: