Jump to content

Creating external URL in category block header?


Recommended Posts

Hello all,

 

I have this tmcategories.tpl

 

<div id="tmcategories">
<div id="tmcategories_inner">
<ul id="cat">
{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}
<li><a href="cristocat.tumblr.com/">Blog</a></li>
</ul>


</div>
</div>

 

Two internal shop categories, and one external link to our blog.

 

This generates the following awesome result:

 

HjG7w.png

 

 

However, when we go to click the new <li> Blog link, the URL is prefixed with the domain name, as such:

ec3kD.png

 

So as you can see, instead of pointing to directly to the external URL I've specified, it treats the link as if it were an internal document. I realize this has something to do with the PHP classes defined by the "extends" call at the start of the attached code..any ideas for workarounds? We'd really love to have our three links located in the same nav bar, instead of arbitrarily separated.

 

Thanks guys, it's a real blast reading what everyone has to say on these boards!

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