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

Breadcrumb Home Link

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 10-16-2009, 10:27 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Breadcrumb Home Link

That didn't work either
__________________
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
  #12  
Old 10-16-2009, 11:49 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Breadcrumb Home Link

This works, added code in red
Code:
{foreach from=$location item=l name=location} {if $l.1 && !$smarty.foreach.location.last} {if $l.0 eq $config.Company.company_name} <a href="{$l.1|amp}">Home</a> {else} <a href="{$l.1|amp}">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|escape}{/if}</a> {/if} {else} <span class="current">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|escape}{/if}</span> {/if} {if !$smarty.foreach.location.last} <span>╩</span> {/if} {/foreach}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
JWait (10-16-2009)
  #13  
Old 10-16-2009, 01:18 PM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Breadcrumb Home Link

I appreciate the help, and that last one changed the "company name" to "Home", but now the links don't work.
__________________
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
  #14  
Old 10-16-2009, 01:43 PM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Breadcrumb Home Link

I got it. I had to add a <br /> tag because of the "hidden" JavaScript warning.... got the styles to work too.
Code:
{* $Id: bread_crumbs.tpl,v 1.5.2.1 2009/04/01 10:37:47 avg Exp $ vim: set ts=2 sw=2 sts=2 et: *} <br /> {if $location} <div id="location"><br /> {foreach from=$location item=l name=location} {if $l.1 && !$smarty.foreach.location.last} {if $l.0 eq $config.Company.company_name} <a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">Home</a> {else} <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> {/if} {else} <span class="current">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|escape}{/if}</span> {/if} {if !$smarty.foreach.location.last} <span> \ </span> {/if} {/foreach} </div> {/if}
__________________
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
  #15  
Old 10-16-2009, 07:01 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Breadcrumb Home Link

Well that was a hard one Glad you got it working.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #16  
Old 10-22-2009, 01:47 PM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Breadcrumb Home Link

It seems to work in 4.3 as well.

Thanks!
__________________
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

The following user thanks JWait for this useful post:
sunshinestudio (05-25-2010)
  #17  
Old 10-24-2009, 06:28 AM
 
Mathfly Mathfly is offline
 

Newbie
  
Join Date: Oct 2009
Posts: 4
 

Default Re: Breadcrumb Home Link

Thanks for these infos ....

I was following this thread trying to do the same thing... Here is what worked better for me in 4.2.X... or else I was still getting my "Company Name" in the bread crumb on the first Home page.

Then just have the { if $l.0 ....} before the { if $l.1 ....} loop.

Code:
{* $Id: bread_crumbs.tpl,v 1.5.2.1 2009/04/01 10:37:47 avg Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $location} <div id="location"> {foreach from=$location item=l name=location} {if $l.0 eq $config.Company.company_name} <a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">Home</a> {else} {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"}{$l.0}{else}{$l.0|escape}{/if}</font> {/if} {/if} {if !$smarty.foreach.location.last} <span>::</span> {/if} {/foreach} </div> {/if}
__________________
X-Cart Gold 4.3
Reply With Quote

The following user thanks Mathfly for this useful post:
Scott DeToffol (11-06-2009)
  #18  
Old 03-19-2013, 06:08 PM
 
wites wites is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 36
 

Default Re: Breadcrumb Home Link

Hi! How did you solve problem with breadcrumbs home link? I have the same issue i need Home link to go to main domain of the website instead of the xcart folder. thanks

Quote:
Originally Posted by edawlem
I found what I needed here.

I'm hoping that covers everything... ??
__________________
X-Cart Gold 4.1.11
X-Cart Gold v4.1.8
X-Cart Gold v4.1.1
X-Cart Gold v4.4.3
X-Cart Gold v4.5.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:54 PM.

   

 
X-Cart forums © 2001-2020