Upgrading a Joomla 1.5 template to Joomla 2.5

From Joomla! Documentation
Revision as of 08:34, 31 May 2010 by Betweenbrain (Talk | contribs)

Jump to: navigation, search

Contents

Template Parameters

In both Joomla! 1.5 and 1.6 template parameters are defined in templateDetails.xml.

Whereas in 1.5 parameters are defined as part of the <params> section, and each parameter is defined as a <param>, in 1.6 template parameters are contained in the <config> section and treated as a <field> nested within the <fieldset> and <fields> tags, as illustrated below.


    <config>
        <fields name="params">
            <fieldset name="basic">
                <field name="" type=" default="" label="" description="">
                    <option value="1">On</option>
                    <option value="0">Off</option>
                </field>
                <field name="" type="" default="" label="e" description="" />
            </fieldset>
        </fields>
    </config>

<fieldset name="basic"> wraps the parameters in a slider and using name="basic labels that slider as "Basic Options" and name="advanced" labels it as "Advanced Options".

The name="" type=" default="" label="" description="" attributes still apply.

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox