View Single Post
  #4  
Old 02-04-2011, 02:34 AM
 
mekon mekon is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 180
 

Default Re: Hiding and showing elements on different pages

Almost there with this...just need to show the jquery slider on the home page.

Instead of using 'catalog' is there another way of hiding the top code on the category pages but showing it on the home?

{if ($main neq 'product' and $main neq 'catalog' and $main neq 'catalog' and $main neq 'cart' or $cart_empty) and $main neq 'checkout'}

<div id="banner">
Jquery banner thing
</div><!-- / banner -->

{/if}


{if $current_category.category neq ""}

<div id="banner">
<img src="{if $current_category.icon_url}{$current_category.icon _url}
{else}{$xcart_web_dir}/image.php?id={$cat}&amp;type=C{/if}" alt="Alt here" />
</div><!-- / banner -->

{/if}
__________________
------------------------------------------------

Darren
Reply With Quote