Jump to content

Trying to add a static link to blockcategories.tpl


Recommended Posts

Strange one this...

 

I'm tryng to add one static link to the blockcategories.tpl so it appears beneath all of the dynamic categories on my site.

 

The code in blockcategories.tpl looks like:

 

<div id="categories_block_left" class="block">
<h4>{l s='Categories' mod='blockcategories'}</h4>
<div class="block_content">
	<ul class="tree {if $isDhtml}dhtml{/if}">
	{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}

	</ul>
	{* Javascript moved here to fix bug #PSCFI-151 *}
	<script type="text/javascript">
	// <![CDATA[
		// we hide the tree only if JavaScript is activated
		$('div#categories_block_left ul.dhtml').hide();
	// ]]>
	</script>

</div>
</div>

 

And I thought I could just add a list item along with the link after the ending foreach tag, that would do it, but its not working. In fact, I've tried making lots of changes to the file, and it doesn't seem to make any difference. The only thing that altered it was when I removed the file completely, and it showed a message saying that the template file could not be found.

 

Is it possible that the categories are using a different template file? I'm very confused by this!

 

Thanks

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