Guest
08 Jan 2013 05:59

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 :)

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
09 Jan 2013 04:36

Thank you. Added to all modules next update.


Sergey
Total posts: 13,748
09 Jan 2013 04:36

But fo Cobalt 8. Although they have to work with Cobalt 7 too.

Powered by Cobalt