Config.xml for 1.5 and 1.6

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
User avatar
hidabe
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 110
Joined: Sat Aug 11, 2007 3:31 pm
Contact:

Config.xml for 1.5 and 1.6

Post by hidabe » Sun Dec 19, 2010 9:42 am

Ok... i know, xml format for component preferences has been changed :(

I think that the new format is better, but... how can i do this file compatible with 1.5 and 1.6? I don't want to have to do two different components, is there any way to do it?

Thanks and regards!

User avatar
hidabe
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 110
Joined: Sat Aug 11, 2007 3:31 pm
Contact:

Re: Config.xml for 1.5 and 1.6

Post by hidabe » Mon Dec 20, 2010 7:29 pm

Ok, i have seen that i can add <field> node and <params> node in same <config> XML file. And it work for joomla 1.5 and joomla 1.6 ! Regards!

User avatar
didiani
Joomla! Intern
Joomla! Intern
Posts: 61
Joined: Thu Nov 18, 2010 6:33 am

Re: Config.xml for 1.5 and 1.6

Post by didiani » Thu Dec 23, 2010 9:29 am

yupp.. in Joomla 1.6 <params> and <param> tags are deprecated, use <fields>, <fieldsets> and <field> instead
see more..
http://docs.joomla.org/What%27s_new_in_Joomla_1.6

User avatar
hidabe
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 110
Joined: Sat Aug 11, 2007 3:31 pm
Contact:

Re: Config.xml for 1.5 and 1.6

Post by hidabe » Thu Dec 23, 2010 9:55 am

Yes didani, thank you, i am doing it: adding params and fields in same XML, so i have 1.5 and 1.6 compatibility in one package :)

Thanks and Regards!


Locked

Return to “Joomla! 2.5 Coding”