Jump to content

[SOLVED] Display Home link at top of Categories - Quick Question


Recommended Posts

Rocky,

I can't seem to find that code anywhere in blockcategories.tpl

Do you have any suggestions?

My code shows:

[removed][removed]
<link href="{$base_dir}modules/blockcategories/ddsmoothmenu.css" rel="stylesheet" type="text/css" media="all" />
<!-- Block categories module -->


{l s='Categories' mod='blockcategories'}


     {foreach from=$blockCategTree.children item=child name=blockCategTree}
     {if $smarty.foreach.blockCategTree.last}
     {include file=$branche_tpl_path node=$child last='true'}
     {else}
     {include file=$branche_tpl_path node=$child}
     {/if}
     {/foreach}



<!-- /Block categories module -->

Link to comment
Share on other sites

I didn't know you were using a third-party category module. The code is very similar though. Just change:

>
</pre>
<ul>



to:

>
</pre>
<ul>
{l s='Home' mod='blockcategories'}



Change blockcategories to the directory name of the module.

Link to comment
Share on other sites

My blockcategories.tpl code shows:

[removed][removed]
<link href="{$base_dir_ssl}/modules/blockcategories/ddsmoothmenu.css" rel="stylesheet" type="text/css" media="all" />
<!-- Block categories module -->


{l s='Categories' mod='blockcategories'}


{l s='Home' mod='blockcategories'}
     {foreach from=$blockCategTree.children item=child name=blockCategTree}
     {if $smarty.foreach.blockCategTree.last}
     {include file=$branche_tpl_path node=$child last='true'}
     {else}
     {include file=$branche_tpl_path node=$child}
     {/if}
     {/foreach}



<!-- /Block categories module -->



It still isn't working, what seems to be the problem?

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