Jump to content

Why $category->id work only outsite others {if}'s?


Graphics Back Label

Recommended Posts

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

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...