Graphics Back Label Posted October 26, 2016 Share Posted October 26, 2016 Good morning, I tried to insert this: {if category->id == '1'} ... {/if} Within this code: if isset($category)} {if $category->id AND $category->active} {if $scenes || $category->description || $category->id_image} ... {if $scenes} ... {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {if $category->description} ... {if Tools::strlen($category->description) > 350} ... {else} {$category->description} {/if} ... {/if} ... {else} THERE'S WHERE I TRIED INSERT THE CODE {/if} And it doens't wok.. why? Regards, Link to comment Share on other sites More sharing options...
rocky Posted October 26, 2016 Share Posted October 26, 2016 Make sure that else statement isn't executed only when {$category} is empty, otherwise your code will never run. Also, it should be {if $category->id == 1} 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