CONetWebDesign Posted June 26, 2012 Share Posted June 26, 2012 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 More sharing options...
CONetWebDesign Posted July 2, 2012 Author Share Posted July 2, 2012 Anybody? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now