Skip to content

Instantly share code, notes, and snippets.

@gpickin
Created July 20, 2016 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpickin/545242a3da6c2805efb4e6cac82ce1ad to your computer and use it in GitHub Desktop.
Save gpickin/545242a3da6c2805efb4e6cac82ce1ad to your computer and use it in GitHub Desktop.
mySecrets ModuleConfig - Step 1
/**
* ContentBox - A Modular Content Platform
* Copyright since 2012 by Ortus Solutions, Corp
* www.ortussolutions.com/products/contentbox
* ---
*/
component hint="My Secrets Module Configuration"{
// Module Properties
this.title = "MySecrets";
this.author = "Ortus Solutions, Corp";
this.webURL = "http://www.ortussolutions.com";
this.description = "This is a secrets module";
this.version = "1.0";
// If true, looks for views in the parent first, if not found, then in the module. Else vice-versa
this.viewParentLookup = true;
// If true, looks for layouts in the parent first, if not found, then in module. Else vice-versa
this.layoutParentLookup = true;
// Module Entry Point
this.entryPoint = "mysecrets";
function configure(){
// parent settings
parentSettings = {
};
// module settings - stored in modules.name.settings
settings = {
};
// Layout Settings
layoutSettings = {
defaultLayout = ""
};
// datasources
datasources = {
};
// web services
webservices = {
};
// SES Routes
routes = [
// Module Entry Point
{pattern="/", handler="home",action="index"},
// Convention Route
{pattern="/:handler/:action?"}
];
// Custom Declared Points
interceptorSettings = {
customInterceptionPoints = ""
};
// Custom Declared Interceptors
interceptors = [
];
// Binder Mappings
// binder.map( "Alias" ).to( "#moduleMapping#.model.MyService" );
}
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
}
/**
* Fired when the module is activated by ContentBox
*/
function onActivate(){
}
/**
* Fired when the module is unregistered and unloaded
*/
function onUnload(){
}
/**
* Fired when the module is deactivated by ContentBox
*/
function onDeactivate(){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment