hhcj Posted April 11, 2013 Share Posted April 11, 2013 Hi I have no picture in a category you want to do is that if no image showing the text. In category.tpl, I think the party involved is this {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'mycategory')}" alt="" /> {else} <img src="{$img_cat_dir}default-mycategory.jpg" alt="" /> {/if} But always "enters"} {if $ subcategory.id_image never in the {else}. Since it has image should display text. I put it as you get then but nothing ... {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'mycategory')}" alt="" /> {else} <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> {/if} Can anyone help please Greetings! 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