This website uses cookies to improve your experience and deliver relevant information.

on Monday, 17 October 2011

Module parameters/settings not showing in Joomla! 1.7?

I came across an interesting problem with a module in Joomla! 1.7 which appeared to have available settings in the parameters of the module, but they were not showing in the back end of Joomla's administration portal.

When I dug a little further in the module XML file (which controls what shows in the module back end) I noticed that the parameters were still being declared as was required for Joomla! 1.5 - and had not been updated for 1.7.

Old style module parameter settings:

<params>
    <param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="Module class suffix" />
    <param name="limit" type="text" default="5" label="# of items to show" description="display a certain number of items" />
  </params>

New style module parameter settings:

<config>
<fields name="params">
<fieldset name="basic" label="Module Parameters" description="Module settings">
  <field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="Module class suffix"></field>
  <field name="limit" type="text" default="5" label="# of items to show" description="display a certain number of items"></field>
  </fieldset>
</fields>
</config>

Note the need to declare the config tags, then field names, fieldset, and then finally the individual fields.

Once I altered the module XML file to display in this manner, it all started working!  Thanks to DMDigital over on the Joomla! Forums for this fix.

 

We're specialists in Content Management Systems Want to work with the experts?

Virya Group provides a range of solutions to your technology needs