Free
Fast and easy to create a web.
Features:
- XHTML, CSS
- Joomla, WordPress
Cheap
More than 999 Templates.
Features:
- Joomla, WordPress, VirtueMart
- Free unlimited hosting
- Free Domain
Design
Paint your website.
Features:
- Joomla, WordPress, VirtueMart
- Include PSD file
- Mod style plugin & module
- Support install
Develop
Developing your ideas.
Features:
- Drupal, Joomla, WordPress
- Writing plugins, components, modules
- Include PSD file
Easy to order: You { Choice template -> Send us your ideas & information -> Payment by PayPal } Us { Design -> Transformation } In 7 days
Blog
Tutorial:Upgrade Joomla 1.5 Template to Joomla 1.6
- Details
- Category: Blog
- Published on Friday, 12 November 2010 03:53
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.
Objects and Methods
Sitename
<?php echo $mainframe->getCfg('sitename');?>is now$app->getCfg('sitename');Where$app = JFactory::getApplication();
Error Codes
$this->error->codeis replaced by$this->error->getCode();$this->error->messageis replaced by $this->error->getMessage();




