Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.


givrinila
Beginner Modder
ranks
useravatar
User Info

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

Administrator has disabled public posting
metamodguy
useravatar
User Info

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

Administrator has disabled public posting
metamodguy
useravatar
User Info

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

Administrator has disabled public posting
givrinila
Beginner Modder
ranks
useravatar
User Info

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.


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 3107  Total Topics: 1196  Total Polls: 7  Total Posts: 4454  Total Posts Today: 1
User Info:   Newest User :  gobl3t   Members Online: 1   Guests Online: 58
Online 
Jeff78
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked