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.

 

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

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

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

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
3319 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1675
Total Polls:
6
Total Posts:
5917
Posts this week:
6
User Info:
 
Total Users:
11577
Newest User:
owens65784
Members Online:
0
Guests Online:
145

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