Joomla 1.6 is now the future for Joomla. From now on, most developers will develope extensions for the new version of the Joomla CMS. This article is not to reinvent the wheel, but, rather point to a solid page with the required information required to perfom such an upgrade.
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
i.e. <description>PLEASE_GO_TO_MY_MODULE_FOR_DESCRIPTION</description>
3) If you are using a lanuguage file, the underscores must be changed there too in addition to added quotations and # changed to ;
; BWS
; Copyright (C) 2011 BWS
; License GNU/GPL
; Note : All ini files need to be saved as UTF-8
PLEASE_GO_TO_MY_MODULE_FOR_DESCRIPTION=”<div id=”holdthem”><h1>MY Module for Joomla 1.6x</h1>”
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.
Change
Change to:
require JModuleHelper::getLayoutPath(‘mod_mymodule’,
$params->get(‘layout’, ‘default’).’_items’);
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.
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton