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.

 

Module always display on every page

Module always display on every page

Dear All,

My live site : www.direktoritangsel.com has been using sobi2 properly. I have assign home menu to the sobi2 component, so when people go to the url sobi2 entry displayed on frontpage of my joomla site.

Question : I want to enable module on metamod only on frontpage...??

I did this command to enable on my metamod module (free metamod):

Code:


if ( $option == "com_sobi2" and
  ( JRequest::getInt('catid',0) > 0 or JRequest::getVar('sobi2Task') == '' ) ) return "1,2";

but the module (id=1,2) still appeared on every page of sobi2 page.


the module with id=1,2 i published to the left position with assign to the home menu.


below the captured from my site :

picture below is on frontpage
[img http://lh5.ggpht.com/_C9cb13WPsGU/S2QAP … page1.jpg][/img]


Picture below is on detail page of sobi2
[img http://lh3.ggpht.com/_C9cb13WPsGU/S2QAP … page2.jpg][/img]


i tried command below :

Code:

if ( $option == "com_sobi2" and JRequest::getVar('sobi2Task') == '' ) ) return "1,2";

but the result no module display on mainpage of my website.

Thanks for every solution, i just giveup with many source that i took on metamod forum and other resources.

Best Regards,

MicoKelana

Edited By: micokelana
31-Jan-10 01:39:54

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

Re: Module always display on every page

Hi MicoKelana,

sorry for the delay in replying, it's taking me a while to catch up on support after getting back from holidays.

Can I suggest you try this:

if ( $option == "com_sobi2"
  and JRequest::getVar('catid') == ''
  and JRequest::getVar('sobi2Task') == ''
) return "1,2";

I'm pretty sure that will do what you were wanting. If not, please write back and I am sure we'll get something working for you.

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

Re: Module always display on every page

Dear metamodguy,


he..he.. sorry for late respond your replied....

finally with your trick i did it....

thanks so much for your best module..


Regards,


MicoKelana from indonesia

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

Re: Module always display on every page

smile

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:
1674
Total Polls:
6
Total Posts:
5917
Total Posts Today:
5
User Info:
 
Total Users:
11536
Newest User:
lucero1247
Members Online:
4
Guests Online:
160


Forum Legend:

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