Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Need help using MedtaMod / MetaMod...
Need help using MedtaMod / MetaMod Pro with Flexicontent...
Need help using MedtaMod / MetaMod Pro with Flexicontent...
First off, I LOVE MetaMod! And I also love Flexicontent. What I want is to display a group of modules on the first page of a category or tags list, like this one:
http://zzz.com.s74264.gridserver.com/ja … Itemid=139
and NOT on page 2, 3, etc if you click the navigation at the bottom of the category or tag list page:
http://zzz.com.s74264.gridserver.com/ja … itstart=10
Can you help me with that? Thank you!!!
Re: Need help using MedtaMod / MetaMod Pro with Flexicontent...
Yes, that should be easy:
if ($option == 'com_flexicontent' and JRequest::getInt('limitstart',0) == 0) return XXX;
// replace XXX with the module ID of the module that should
// only be displayed on the first page of flexicontent results.
Cheers,
Stephen
Re: Need help using MedtaMod / MetaMod Pro with Flexicontent...
It doesn't seem to be working. I went into my metamod module for that category and position, added this as the rule:
if ($option == 'com_flexicontent' and JRequest::getInt('limitstart',0) == 0) return 89;
and when I click this button on the menu:
http://zzz.com.s74264.gridserver.com/ja … Itemid=139
it doesn't show module 89 on the first page.
Re: Need help using MedtaMod / MetaMod Pro with Flexicontent...
Hi asdfasdf,
I'm sure it's just a simple setup thing:
1 - is the MetaMod itself enabled?
2 - is the MetaMod assigned to the correct menu item(s)?
(you can test 1 and 2 by turning on debug mode in that MetaMod, and seeing if you get any output on those menu item(s) )
3 - is 89 the right module id?
4 - is module 89 disabled (it should be), and is "auto-enable included modules" set to "All" in MetaMod? (it should be).
Try all of those, and get post here again if it's still not working.
Cheers,
Stephen
Re: Need help using MedtaMod / MetaMod Pro with Flexicontent...
That helped, but now there's another problem:
I didn't have it assigned to a menu before, I thought we weren't supposed to use the menu assignment with metamod - that it would simply use the logic to determine module placement. So now it's appearing on the first page:
http://zzz.com.s74264.gridserver.com/ja … Itemid=139
But not the second page:
http://zzz.com.s74264.gridserver.com/ja … itstart=10
Which is what I want - BUT - it's now appearing on individual article pages, like this:
http://zzz.com.s74264.gridserver.com/ja … Itemid=139
and I don't want it to appear on individual article pages - ONLY THE FIRST PAGE OF A CATEGORY MENU LINK. I'm sure it's something simple you will know how to do but I am clueless.
Also, it is appearing on tag selection category lists, which I do not want - I want to specify a different module for a particular tag list:
http://zzz.com.s74264.gridserver.com/ja … Itemid=139
I think MetaMod is awesome, if I could only learn how to use it! Thank you so much for your help in advance...
Re: Need help using MedtaMod / MetaMod Pro with Flexicontent...
Hi asdfasdf,
ok, I see where the problem is.
In the recipe I sent, I only got it to check for $option == 'com_flexicontent' and JRequest::getInt('limitstart',0) == 0. I didn't think to also limit it to the first page of a category menu link.
So we just put in a check for that as well. Try the following:
if ($option == 'com_flexicontent' and $view == 'category' and JRequest::getInt('limitstart',0) == 0) return XXX;
Now, regarding tag lists, do you want a recipe for targetting particular tag lists?
You could try some rules like this:
if ($option == 'com_flexicontent' and $view == 'taglist' and $id == '2:featured' ) return XXX;
if ($option == 'com_flexicontent' and $view == 'taglist' and $id == '3:whatever' ) return YYY;
if ($option == 'com_flexicontent' and $view == 'taglist' and $id == '4:something' ) return ZZZ;
// etc...
- Index
- » MetaMod
- » MetaMod General Support
- » Need help using MedtaMod / MetaMod...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8021
- Newest User:
- shrutihassan193
- Members Online:
- 0
- Guests Online:
- 198
- 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