It’s possible to define the module that should be installed when I activate a theme?
For example I can create a theme that support my sitemap module, add this module automatically when I activate the theme if the module it’s not already installed.
It’s possible to define the module that should be installed when I activate a theme?
For example I can create a theme that support my sitemap module, add this module automatically when I activate the theme if the module it’s not already installed.
Hmm, this is just a thought, but what if themes were modules? I’ve been moving this way with CommandBox-- the module is the base unit of re-use for the entire project. Custom commands, interceptors, etc are all just modules. One benefit of that is the pre-existing plumbing in place to track what’s installed and request dependencies that also need installed at the same time.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
Brad I’m not sure if this is possible, but can a module run a commandbox command?
For example in theme.cfc we can add something like
`
function onActivation(){
runCommand(‘install cbSitemap’)
}
`
I’ve actually thought about being able to expose CommandBox’s services, but not-- that’s not possible. It would be conceivable to write CFML code that installed stuff, but you’d need to manually do it.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com