Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Module always display on every page
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
31-Jan-10 02:39:54
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
- Index
- » MetaMod
- » MetaMod General Support
- » Module always display on every page
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:
- 155
- 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