View Single Post
  #14  
Old 06-23-2009, 08:44 AM
 
Marc Gold Marc Gold is offline
 

Member
  
Join Date: Oct 2006
Posts: 11
 

Default Re: Change bread crumb to start with "Home" not company name

Hi

We do not want to show the product as the last item on the breadcrumb, so have commented this out as you will see from the script below.

However, now the last item, isnt the last item in the variable. Hence the seperator always shows and I cant style the last one seperately.

Can anyone help with what changes I need to apply to the PHP to remove the product as the last one in the loop.

Thanks

{if $location}
<div id="location" style="padding-left:10px;">
{foreach from=$location item=l name=location }

{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 $smarty.foreach.location.first}Home{else}{$l.0|esc ape}{/if}</a>
{else}
{* <font class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</font> *}
{/if}
{if $smarty.foreach.location.last neq "1"}
<span>>></span>
{else}

{/if}
{/foreach}
</div>
{/if}
__________________
www.i-point.co.uk
www.novelties4parties.co.uk - 4.1.8
www.edworthys.co.uk - 4.1.5
Inkntoner.co.uk - 4.1.8 / 4.7
ROK Universal 4.3
Displaysense - 4.2
Xcart Ver: 4.7.3
Reply With Quote