View Single Post
  #17  
Old 10-24-2009, 06:28 AM
 
Mathfly Mathfly is offline
 

Newbie
  
Join Date: Oct 2009
Posts: 4
 

Default Re: Breadcrumb Home Link

Thanks for these infos ....

I was following this thread trying to do the same thing... Here is what worked better for me in 4.2.X... or else I was still getting my "Company Name" in the bread crumb on the first Home page.

Then just have the { if $l.0 ....} before the { if $l.1 ....} loop.

Code:
{* $Id: bread_crumbs.tpl,v 1.5.2.1 2009/04/01 10:37:47 avg Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $location} <div id="location"> {foreach from=$location item=l name=location} {if $l.0 eq $config.Company.company_name} <a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">Home</a> {else} {if $l.1 && !$smarty.foreach.location.last} <a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|escape}{/if}</a> {else} <font class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|escape}{/if}</font> {/if} {/if} {if !$smarty.foreach.location.last} <span>::</span> {/if} {/foreach} </div> {/if}
__________________
X-Cart Gold 4.3
Reply With Quote