As the developer of MOAP I have had a lot of support requests about module chrome, often about module chrome preventing a column from collapsing. The html tags of the module chrome are still in the output when MOAP tries to hide the module published through it, because MOAP is active in a page so as to show or hide the output of other modules. A work-around would be to change the template and change the module chrome to raw. However, that work-around prevents other modules from displaying properly in the same position. Creating a plugin to conditionally remove chrome is not an option either.
However, a simple solution would be to change just a few lines in ibraries\joomla\application\module\helper.php. In line 205 this:
Code: Select all
$chromeMethod = 'modChrome_'.$style;
Code: Select all
if(!empty($module->content)){
$chromeMethod = 'modChrome_'.$style;
} else {
$chromeMethod = 'modChrome_raw';
}
Users of conditional modules could hack the core files in this way, but obviously hacking does not work well with updates.
Since this is a minor change, without side-effects or backwards-compatibility issues, which would help thousands of users and might open doors for new module development, I hope this feature request will be adopted.