Updating fairly simple modules to be 2.5 compatible is very simple. The first thing you start with is the XML file.
<install version="1.5">
needs to be replaced with <extension version="2.5">
The same goes for the tag at the very end: </install>
to </extension>
Then, you will need to start with the parameters. Each parameter is defined with <param>
and needs to be changed to <field>
. However a little more needs to be added to the beginning and end of the fields as shown below:
Updating fairly simple modules to be 2.5 compatible is very simple. The first thing you start with is the XML file.
<install version="1.5">
needs to be replaced with <extension version="2.5">
The same goes for the tag at the very end: </install>
to </extension>
Then, you will need to start with the parameters. Each parameter is defined with <param>
and needs to be changed to <field>
. However a little more needs to be added to the beginning and end of the fields as shown below:
<config>
<fields name="params">
<fieldset name="basic">
//Fields go in here
</fieldset>
</fields>
</config>
Also, if you are using language files, you will need to copy and paste the following one you have and add .sys
into the name like so en-GB.mod_example.sys.ini
. Then open this file and ensure that the description of the module is the only translation in the file. Once done, specify the language file in the XML. Don't forget that language file's for Joomla 2.5 don't support #
at the beginning of the data lines, and will need to be replaced with ;
It might also be an idea to keep up to date with any functions that are removed or deprecated.
Hope this helps.