Module Settings and Conventions

Luis & Team,

I have the need to dynamically change the module conventions for a current module, I can see that there is a getModuleSettings(‘module’) however I do not see a way to set the convention or change it.

Is this possible or do I need to do some other magic to do this?

http://wiki.coldbox.org/wiki/Modules.cfm#Changing_The_Module_Layout

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Luis, that doesn’t answer my question!

Dynamically is what I am asking for.

signature0.jpg

Well don’t know how since the config is read and registered so it can activate it. Not sure if possible

Well it is but its long winded…

I used to do this before modules back in the very old days

controller.setSetting(‘ViewsExternalLocation’, ‘/#instance.skinPath#/#instance.skinName#/Views’);

And was looking for something similar, the only solution I could come up with was

var modules = getSetting(“modules”);
modules[‘myModule’].conventions.layoutsLocation = ‘skins/layouts’;
setSetting(‘modules’, modules);