Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Normal module display rules not working?

Normal module display rules not working?

Hi, testing MetaMod 2.1 on J! 1.5.14 site.

Generally it's working but in one instance I have 5 modules that are displayed through one instance of Metamod based on the module position all 5 are published to i.e. whatever is in that position should be displayed.

It works, except that it doesn't seem to obey the normal module display rules:

  1. the order the modules are displayed in is different to the order I've specified in the module manager
  2. and, for each of the 5 modules, I've specified different pages each should display on. So, although there are 5 modules in the position being display, depending on which page, only 2 or 3 should actually show up. But all 5 show regardless.


Am I missing something? Please advise.

Edited By: givrinila
02-Nov-09 06:21:19

givrinila
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Normal module display rules not working?

Hi Givrinila,

Are you saying that you do something like: return "new-right-position";

... and in the new-right-position you have 5 modules
... and some of these modules have been assigned to different Joomla menu items ("pages")
... and the order of the modules that you set in new-right-position is not the order that they appear when you return "new-right-position";

Ok, the ordering problem sounds like a bug, because I put code into MetaMod to ensure that the modules should return in the original order. Can you confirm that the setup is as I stated above, and I'll look at it? If your site is public can you send me a URL for me to take a look at?

The issue of modules being assigned onto different pages is a different one. When MetaMod includes a module onto a page (either by ID, or by including everything from a particular module position as I think you are doing), then MetaMod completely disregards the previous Menu Assignments of those modules.

Therefore, if you want to pick and choose which modules go onto which pages, then you'll either need to do that by ID, or perhaps group the modules into module positions according to which ones should be displayed together.

e.g. doing it by ID:

if (bla bla bla) return "45, 25, 34";
else if (foo bar wotsit) return "15, 35, 101";

Or doing it by module position:
- put modules 45, 25 and 34 into module position "test1"
- put modules 15, 35 and 101 into module position "test2"

if (bla bla bla) return "test1";
else if (foo bar wotsit) return "test2";


Does that help?
Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: Normal module display rules not working?

Hi givrinila,

just wanted to let you know that the "ordering" bug that you reported got fixed last week. If you download and install the most recent version of MetaMod then it won't have that bug any more.

Best regards,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: Normal module display rules not working?

Thanks for response. That information does help, I will try it out... and thanks for looking into the bug. Will download latest version shortly.

givrinila
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4397
Newest User:
tull687318
Members Online:
0
Guests Online:
221

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked