Jump to content

Adding a link in category block module


EV Network

Recommended Posts

Hello, I was wondering how to add a custom link in the category module block. I've looked through the controller code and there seems to be some smarty recursion thing going on, and i don't quite understand which one of the templates is being used to display the final hmtl.

I tried printing out {$currentCategoryId} on the modules/blockcategories/category-tree-branch.tpl but nothing happens, so i'm getting a bit confused. I've also tried editing the themes/mytheme/category-tree-branch.tpl file but that isn't working either.

>

{$node.name|escape:'htmlall':'UTF-8'}
   {if $node.children|@count > 0}
</pre>
<ul>
       {foreach from=$node.children item=child name=categoryTreeBranch}
           {if $smarty.foreach.categoryTreeBranch.last}
               {include file="$tpl_dir./category-tree-branch.tpl" node=$child last='true'}
           {else}
               {include file="$tpl_dir./category-tree-branch.tpl" node=$child last='false'}
           {/if}
       {/foreach}
</ul>
<br>   {/if



This is the code of the category-tree-branch.tpl file

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