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.

 

Need to remove my slideshow from mainpage

Need to remove my slideshow from mainpage

Hello,

In the past I have used MetaMod with success but today I have tried to hide my slideshow / banner from all pages except the front page with no success. I'm using VirtueMart as my Front page and I'm using this code:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = frontpage" ) ) return 94;

In my front page it appears as expected but on the other pages the text disappears but the images stay there. You can check it here:
http://www.reinodosanimais.pt/ - Main site (normal behavior)
http://www.reinodosanimais.pt/index.php/gatos - The slideshow shouldn't appear but as you can see the text is gone but the images stay there.

Any help? Thank you.
Cleon

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

Re: Need to remove my slideshow from mainpage

Hi Cleon,

I just looked at the 2 versions of the page. I can see the difference. The background image is set in place with a div:

<div class="ot-banner-i">
</div>

When the module is enabled, the module includes the extra text inside this:

<div class="ot-banner-i">                           
<div class="custom"  >
    <div class="ot-banner-left">
<div class="ot-bannerleft-title">Free delivery to your door</div>
<div class="ot-bannerleft-price">when order over $89.00</div>
<div class="ot-bannerleft-detail"><a href="/index.php/component/content/article?id=25">more detail</a></div>
</div>
<div class="ot-banner-right">
<div class="ot-banner-title"><span>BIG</span> SALE</div>
<div class="ot-banner-save">Save up to 20% on travel items for your pet</div>
<div class="ot-banner-list">
<ul>
<li>Car Safety Harness</li>
<li>Happy Trails Stroller</li>
<li>Original Deluxe Sherpa Bag</li>
</ul>
</div>
<div class="ot-banner-order"><a href="/index.php/component/content/article?id=26">shop now</a></div>
</div></div>
</div>

So it looks like the module is only controlling the text, not the background image. Is the background image set directly in your template? It kind of looks like it. In any case, MetaMod can only control modules. If the HTML is generated outside of a module then it's not able to help.

Hope that clears things up,
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

Re: Need to remove my slideshow from mainpage

Hello Stephen,

Thank you for your quick reply. I will check that and let you know.

Thank you.
Cleon

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Total Posts Today:
2
User Info:
 
Total Users:
4371
Newest User:
kajha63871
Members Online:
0
Guests Online:
175

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