Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » zoo component and metamod problem
zoo component and metamod problem
zoo component and metamod problem
Hi, i have some problem with zoo component of yootheme for joomla 1.5. I try to follow the instruction on the other thread but it doesn't work.
I need to place a modules only in the frontepage where is shown the category 20. So if a user views the category view he will see the module 148 and if the user views the item view he can't see it.
The problem I have with Zoo is that if you place a module on the category view then it will also show up on the item view, and there is no way to assign a module to just item view alone.
Thanks for all!
Michael
Re: zoo component and metamod problem
Hi Michael,
I just tested using a Zoo category on the front page. MetaMod Advanced Debug mode gave this:
if (
$option == 'com_zoo'
and $view == 'category'
and $Itemid == '178'
) return XXX; /* replace XXX with the module ID or position to display */
When I clicked on an item it gave this:
if (
$option == 'com_zoo'
and $Itemid == '178'
and JRequest::getVar('item_id') == 3 /*!*/
and JRequest::getVar('task') == 'item' /*!*/
) return XXX; /* replace XXX with the module ID or position to display */
So there's a distinction between the category page and the "inner" item pages, and it's pretty easy to check for that difference.
On my setup I'd do this:
if (
$option == 'com_zoo'
and $view == 'category'
and $Itemid == '178'
) return 148; /* replace 148 with the module ID or position to display */
While this does not actually check for category 20, I know that on my front page (itemid 178 in my case) category 20 will show, so I don't need to check for it explicitly.
When an article is clicked, $view is no longer "category", so module 148 won't be shown.
Hope that helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » zoo component and metamod problem
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 105
- 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