I have managed to make a module work on J1.7/2.5/3.0 and that's great.
However, due to the differences in layout for module parameters
(particularly between 2.5-3.0), there are some changes that I would like to
make to my mod_xxx.xml file so that it reads differently for the different
However, I can't see any way to do this, since
administrator/components/com_modules/models/module.php looks for a file
Another pain is that in J3.0, a new "advanced" tab is introduced to module
editing, with some new items on it, e.g. one called "styles". That's all
very well except that it overrides an existing parameter in my module
called "styles". Yes, I could rename my one, but then people upgrading
existing data are going to lose it if they upgrade to this version of the
So what I'd prefer is that on Joomla 2.5, my xml file would retain the
"styles" parameter name, but in the 3.0 version (all packaged in the same
package) it would be named "style2" or somesuch.
What's the best approach here?
- should I have 2 versions of the XML file and move one into place on
installation when J3.0 is detected?
- or is there some method to do with dynamic forms and plugins?
- or other?
Thanks for your help,