Jump to content

Show banner in parent categories


CONetWebDesign

Recommended Posts

Hi guys,

 

I found how to make the banner in categories dissapear however I would like it to appear for parent categories.

 

For example, my parent cats are:

 

COOKWARE - TABLEWARE - BAKEWARE

 

I want the banner to show for cookware, tableware and bakeware but NOT for the sub cats of each of them.

 

This is what I did:

 

Changed lines in category.tpl from:

 

{else}

<!-- Category image -->

{if $category->id_image}

<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" />

{/if}

 

 

to:

 

{*{else}

<!-- Category image -->

{if $category->id_image}

<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" />

{/if}*}

 

 

I know the * changes all cats so is there a way to get the parent cats (or selected category id's) to show?

 

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...