Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
DIfferent module xml file for J2.5 and J3.0, in same package?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stephen Brandon  
View profile  
 More options Nov 12 2012, 6:05 am
From: Stephen Brandon <step...@brandonitconsulting.co.uk>
Date: Mon, 12 Nov 2012 03:05:47 -0800 (PST)
Local: Mon, Nov 12 2012 6:05 am
Subject: DIfferent module xml file for J2.5 and J3.0, in same package?

Hi,

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
Joomla versions.

However, I can't see any way to do this, since
administrator/components/com_modules/models/module.php looks for a file
called /modules/modname/modname.php.

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
module.

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,
Stephen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »