/
ModuleConfig.cfc
46 lines (38 loc) · 1.32 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
component {
this.name = "contentbox-cbcommerce";
this.title = "cbCommerce for ContentBox"
this.description = "cbCommerce module for the ContentBox CMS"
this.version = "1.0.0-alpha1"
this.author = "Jon Clausen <jclausen@ortussolutions.com>";
this.webUrl = "https://github.com/contentbox-modules/cbcommerce";
this.cfmapping = "contentboxCommerce";
this.modelNamespace = "contentboxCommerce";
this.entryPoint = "contentbox-cbcommerce";
this.viewParentLookup = true;
this.layoutParentLookup = true;
this.dependencies = [
"cbcommerce-api",
"cbcommerce-admin",
"cbcommerce-ui"
];
/**
* Configure Module
*/
function configure() {}
function onLoad() {
/**
* Overload for ContentBox default Sitemap Routing
*/
appRouter.prepend()
.route( "sitemap" )
.to( "cbCommerce:Sitemap.index" );
// Add our menu item
var menuService = controller.getWireBox().getInstance( "AdminMenuService@cb" );
menuService.addSubMenu(
topMenu=menuService.MODULES,
name="cbCommerce",
label="Store Admin",
href=menuService.buildModuleLink( 'store', 'admin' )
);
}
}