Hello Cobalt team,
I have some trouble with some of your module, because you are not using the standard elements of Joomla module.
It could be really nice if you consider to use the two standard elements in your module xml and php files :
In XML file :
<field
name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC" />
<field
name="moduleclass_sfx"
type="text"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" />
As you can see, the translation part is common for all modules and do not need to be translate in your own language files
The layout element from J2.5 is able to select specific layout from general template.
The moduleclass_sfx is really useful because used by almost every module chrome.
And in your module php file :
require JModuleHelper::getLayoutPath('mod_yourmodule', $params->get('layout', 'default'));
Those examples come from a joomla core module.
I already had to modify the xml of mod_cobalt_records to include the moduleclass_sfx, really useful for presentation ;)
Thanks by advance :)
Hello Cobalt team,
I have some trouble with some of your module, because you are not using the standard elements of Joomla module.
It could be really nice if you consider to use the two standard elements in your module xml and php files :
In XML file :
As you can see, the translation part is common for all modules and do not need to be translate in your own language files
The layout element from J2.5 is able to select specific layout from general template.
The moduleclass_sfx is really useful because used by almost every module chrome.
And in your module php file :
Those examples come from a joomla core module.
I already had to modify the xml of mod_cobalt_records to include the moduleclass_sfx, really useful for presentation ;)
Thanks by advance :)