X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   CategoryID in BreadCrumb (https://forum.x-cart.com/showthread.php?t=59439)

RedandBlue 05-20-2011 11:18 AM

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.

JWait 06-11-2011 09:23 AM

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>


All times are GMT -8. The time now is 04:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.