View Single Post
  #1  
Old 05-20-2011, 11:18 AM
  RedandBlue's Avatar 
RedandBlue RedandBlue is offline
 

Senior Member
  
Join Date: Aug 2009
Posts: 170
 

Exclamation CategoryID in BreadCrumb

Hi,
this below code is printing the Current Category Name in Breadcrumb
PHP Code:
{if $webmaster_mode eq "editor"}{$1.0}{else}{$l.0|escape}{/if} 

I found that code in bread_crumbs.tpl

I would like to append the Category ID to that Category Name.
can any one help me how can i get this done.

for reference this is the Full Bread Crumb Code
PHP Code:
<div id="location">
      {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 $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"}{$1.0}{else}{$l.0|escape}{/if}</font>
        {/if}
        {if !
$smarty.foreach.location.last}
          <
span>::</span>
        {/if}
      {/foreach}
  </
div>
  </
td>
  <
td width="130" valign="top" align="right">
  {include 
file="customer/printable_link.tpl"

thanks for your time.
__________________
rbgx
X-Cart 4.3.2
Reply With Quote