From the director's office
I mostly blog about the Joomla! Content Management System, business networking, and other geeky subjects which I think are interesting.
- Font size: Larger Smaller
- Hits: 5144
- 11 Comments
- Subscribe to this entry
- Bookmark
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.
Comments
-
Friday, 28 October 2011Hi there,
You'll find these settings within the .xml file that the module comes with - this is where the parameters for modules are specified. The only reason it needs to be changed is because the syntax is different for 1.7.x and hence needs updating.
PS. I have removed the URL and changed your name as we do not allow advertising, but as your comment appeared relevant to the post I've allowed it to remain. -
Thursday, 24 November 2011Hi there,
@Eric: Component settings in Joomla! 1.7.x have more to be changed than just the XML file - I suggest you check out http://docs.joomla.org/Making_single_installation_packages_for_Joomla!_1.5,_1.6_and_1.7 for more information.
If you're struggling with converting a component we offer this as a commercial service, you can see some of our products at http://www.viryasoftware.com.
@Content Management System why not download it and install on a localhost - the best way to learn is by doing, in my opinion. Clearly we specialise in Joomla! so we don't find it difficult to understand, in fact 6 years ago when I first came across it I tried lots of other CMS' but found Joomla! not only the easiest to get to grips with, but also had the most active/helpful community.
@Martin: Clearly you would need to add in the relevant details from your module and make sure you replace the old fields of params/param name with config/fieldname="params"/params as per the post above. Give it a go and see what happens. Make sure you take a backup, of course
-
Monday, 19 December 2011Here is a bit of clarification for you as some people are posting over on the Joomla! forums rather than leaving a comment here, asking for clarification.
The issue with 1.7 is that the way in which the module parameters are declared in the .xml file has changed - this is why many of the settings do not show for modules.
First off, check with the module developer to see if they have released a 1.7.x version of that module. This would be the easiest way to resolve your problem.
If you can't find one and the module does install in 1.7.x but you can't change the settings then you need to follow the instructions on my article which you cited - change the params tags to be what I mention in the article (the second set of fields show the changes).
You need to CHANGE the .xml file to make it work in 1.7.x. So what you have there at the moment would be amended.
For example,
would become:
also,
would become:
((NOTE THE FIRST LINE SEPARATES THE SETTINGS FOR THE MODULE INTO 'SETS' OF FIELDS))
You would then close with the following once you have declared every field in that fieldset (group of fields):
- closes that fieldset
- closes the fields for the settings of the modules
- ends the config section
I hope this clarifies it a bit for you!
Ruth -
Saturday, 04 February 2012Thanks, it really helped! For more information like what to do with etc. I found help at http://docs.joomla.org/Making_single_installation_packages_for_Joomla!_1.5,_1.6_and_1.7






I'm into Joomla but I'm not really familiar with modifying the codes. Where can I find that?