Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

CategoryID in BreadCrumb

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 06-11-2011, 09:23 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: CategoryID in BreadCrumb

Have you tried removing the "if" statement and just displaying {$l.0} by itself?

<a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0}</a>
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:30 AM.

   

 
X-Cart forums © 2001-2020