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:

http://www.coldbox.org/forgebox/type/contentbox-modules

Here’s a simple module that adds a menu contribution:
http://www.coldbox.org/forgebox/view/Let-It-Snow

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’)#”);

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com