Upgrading Joomla 1.5 Modules to Joomla 1.6
To upgrade a Joomla 1.5 module,
1) Open the module xml file.
2) Change the description tag by adding underscores
3) If you are using a lanuguage file, the underscores must be changed there too in addition to added quotations and # changed to ;
4) Convert the Parameters
a) change "<param " with "<field "
b) change "</param>" with </field>"
c) change "<params> with "<config><fields name="params"><fieldset name="basic">"
d) change "</params>" with "</fieldset></fields></config>"
e) change "<install" with "<extension "
f) change "</install>" with "</extension>"
5) The method to retrieve parameters is the same as Joomla 1.5
i.e. color:<?= $params->get('modtextcolor'); ?>;
Alternative Module Templates for Joomla 1.6
f you have various templates in the tmpl folder, you need to modify the main php file. For example, if your extension is mod_myextension you would edit mod_myextension.php.
The code you add to the file is shown below.
The files need names like my_second_templatefile_items.php
The code needed to add the template files in the xml file is:
More details regarding how to upgrade Joomla 1.5 extensions to Joomla 1.6 extensions can be found here.