Jump to content

1.6 - Add an image to a category and subcategory in the vertical menu


Recommended Posts

Hi, I need advice on how to add an image to a category and subcategory in the category-tree-branch.tpl file,
that in the admin of a specific category I have added the image "Menu thumbnail" but it is not defined in the template. Well thank you.

<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">
   <h4>
      <a href="{$node.link|escape:'html':'UTF-8'}"{if isset($currentCategoryId) && $node.id == $currentCategoryId} class="selected"{/if} title="{$node.desc|strip_tags|trim|escape:'html':'UTF-8'}">
         -------------------- 
         ----- add here -----
         --------------------
         {$node.name|escape:'html':'UTF-8'}
      </a>
   </h4>
      
   {if $node.children|@count > 0}
      <ul class="main-level-submenus">
         {foreach from=$node.children item=child name=categoryTreeBranch}
            {if $smarty.foreach.categoryTreeBranch.last}
               {include file="$branche_tpl_path" node=$child last='true'}
            {else}
               {include file="$branche_tpl_path" node=$child last='false'}
            {/if}
         {/foreach}
      </ul>      
   {/if}
</li>

 

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