View Single Post
  #8  
Old 04-11-2008, 08:34 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Remove product title in location.tpl

Section attributes...
http://www.smarty.net/manual/en/language.function.section.php

And another crack at tpl level for removing the product name on the product page's breadcrumb (a little cleaner, no idea if it is quicker though)...

PHP Code:
{assign var=to_be_displayed value=$smarty.section.position.loop}
{if 
$product}{math assign="to_be_displayed" equation="x-1" x=$smarty.section.position.loop}{/if}
{
strip}
{
section name=position loop=$location max=$to_be_displayed}
{if 
$location[position].1 ne "" }<a href="{$location[position].1|amp}class="NavigationPath">{/if}
{
$location[position].0}
{if 
$location[position].1 ne "" }</a>{/if}
{if 
not %position.last%} &gt; {/if}
{/
section}
{/
strip
__________________
Doms
kube v4.1.9
Reply With Quote