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.

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.
  • Bloggers
    Bloggers Search for your favorite blogger from this site.
  • Team Blogs
    Team Blogs Find your favorite team blogs here.
  • Login
    Login Login form
Posted by on in Joomla! Content Management System
  • Font size: Larger Smaller
  • Hits: 5144
  • 11 Comments
  • Print

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.

Rate this blog entry:
I am the owner and Director of Virya Technologies, with the responsibility for leading the website design team.

I am primarily involved with the day to day management of our website projects, ongoing support contracts and liaising with our clients from across the world.

Comments

  • Guest
    Removed due to advertising Friday, 28 October 2011

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

  • Ruth Cheesley
    Ruth Cheesley Friday, 28 October 2011

    Hi 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.

  • Guest
    Erick Thursday, 10 November 2011

    Hi There Ruth, just a quick question, this works for Components parameters/settings too ? I try it in my COM_NAME.XML but it isn't working

  • Guest
    content management system Thursday, 24 November 2011

    A friend of mine says that JOOMLA it is difficult to understand, is it true?
    I am PHP user,

  • Guest
    Martin Muckle Thursday, 24 November 2011

    Hi,

    thanks for this as I am having the same problem. Are you saying that I literally copy the 1.7 format as shown above and paste it over the current format.

    Thanks

  • Ruth Cheesley
    Ruth Cheesley Thursday, 24 November 2011

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

  • Guest
    counterpoint Wednesday, 21 March 2012

    Thanks - unfortunately the link given for Eric is an empty page. Any alternative suggestions please?

  • Guest
    Ruth Cheesley Monday, 19 December 2011

    Here 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

  • Guest
    Ravi Saturday, 04 February 2012

    Thanks, 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

  • Guest
    Tim Monday, 20 February 2012

    Has the format for these parameters changed from 1.7 to Joomla 2.5?

Leave your comment

Guest Friday, 24 May 2013

Looking for our open source software?

viryasoftwarelogo

We release and support our open source software at Virya Software

Forthcoming events

MAY
30

30.05.2013 - 03.06.2013J and Beyond

JUN
6

06.06.2013 - 07.06.2013Great British Business Show @ Excel, London

Latest tweets

Virya Technologies We are in the process of dealing with a script causing high load on our Prajna server, meaning some sites are... http://t.co/StXS2dz3QX
Sunday, 19 May 2013 17:55
Virya Technologies We have been advised that the earlier connectivity problems at our data centre have been resolved. Sorry for any inconvenience.
Friday, 17 May 2013 12:59
Virya Technologies @heartinternet are reporting problems with dedicated & vps servers - some sites we host may be slow to respond. http://t.co/xD4nGZJ6Rq
Friday, 17 May 2013 12:23
Follow ViryaTech on Twitter