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.

 

Issue with module only on the home page

Issue with module only on the home page

Hi,

I've used MetaMod to set a module to only show on the home page, but for some reason, even though the module content doesn't load on the other pages, the empty module position does. Luckily I've managed to hide this with CSS, but I don't want unnecessary code slowing down my page loading time.

If you go to the below link you will notice the title in a green banner at the top. But if you click 'read more' on one of the articles and examine the code with developer tools, you will notice that the HTML for the module is still loading. I'm not sure why this is? It seems as though my code is hiding the module only, but I need it to hide the module position.

Link: http://www.joomla-shark.com/
Code I've used: if ($option == "com_k2" and $view == "itemlist") return 169;

I've disabled the title module and set the MetaMod module to show only on the home page.

All help is greatly appreciated because I've run out of ideas?

Many thanks

austin1988
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Issue with module only on the home page

Hi,

check out the FAQs: http://www.metamodpro.com/metamod/faq

Basically you can solve this easily with MetaMod Pro. There are some other possible solutions but the Pro solution is by far the easiest and most elegant.

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4378
Newest User:
miller2341
Members Online:
0
Guests Online:
116

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