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.


   {if $node.children|@count > 0}
       {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'}
               {include file="$tpl_dir./category-tree-branch.tpl" node=$child last='false'}
<br>   {/if

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

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More