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

Changing breadcrumbs... want to make "HOME" the to

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-25-2005, 10:28 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default Changing breadcrumbs... want to make "HOME" the to

Hello,

Instead of having my company name as the top level in the breadcrumbs like this:

Company :: category :: subcategory :: product


I would like to have:

HOME :: category :: subcategory :: product


I tried simply changing the company name in the General Settings area but then HOME shows up in my title tags instead of my company name.

I'm sure the secret lies in changing the locations.tpl file but I'm at a loss as to how to do that.

Thanks,
Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #2  
Old 01-26-2005, 07:03 AM
 
gfiebich gfiebich is offline
 

Senior Member
  
Join Date: Feb 2003
Location: St. Paul, MN
Posts: 108
 

Default

Hi Jennifer-
I was in the same boat as you and came up with this (less than elegant) solution:

Code:
{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *} {if $location} {strip} {section name=position loop=$location} {if $location[position].1 ne "" } <A href="{$location[position].1}" class="BlueLink12" {if %position.last%} style="color: rgb(114, 135, 152);" {/if}> {else} <FONT class="BlueLink12"> {/if} {if $location[position].0 eq $config.Company.company_name} Home {else} {$location[position].0} {/if} {if $location[position].1 ne "" } </A> {else} </font> {/if} {if not %position.last%} <font class="BlueLink12" color="#003366">&gt;</font> {/if} {/section} {/strip} {/if}
The code just compares the current location against $config.Company.company_name and if it finds a match, replaces that text with "Home".

good luck,
Glen
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS
Reply With Quote
  #3  
Old 01-27-2005, 05:03 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

Thanks Glen, worked perfectly!

Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #4  
Old 02-22-2005, 10:01 AM
 
DanC DanC is offline
 

Member
  
Join Date: Apr 2004
Posts: 12
 

Default

Thanks gfiebich... works like a champ!
__________________
DanC

X-cart Gold 4.0.11
Reply With Quote
  #5  
Old 05-08-2006, 08:48 PM
 
Chris B Chris B is offline
 

eXpert
  
Join Date: Oct 2002
Posts: 226
 

Default Removing the home link entirely from the breadcrumb

How can we remove the home page link entirely from the breadcrumb?

Version 4.0.18

Thank you,

Chris
__________________
4.0x - 4.5x
Reply With Quote
  #6  
Old 08-02-2006, 06:49 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

chris b


got to

general settings
seo options
paget title options: choose the one without "shop name"
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #7  
Old 08-02-2006, 06:51 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

in 4 0 18

Instead of having my company name as the top level in the breadcrumbs like this:

Company :: category :: subcategory :: product


I would like to have:

Home :: category :: subcategory :: product

I would like Home to only appear if the customer is NOT on the HOME PAGE. In other words, there's no need to tell them their in the home page.

i know i got to edit location.ptl
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #8  
Old 08-02-2006, 06:51 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

heres my location ptl for 4 0 18

{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *}
{if $location}
<FONT class="NavigationPath">
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }<A href="{$location[position].1}" class="NavigationPath">{/if}
{$location[position].0}
{if $location[position].1 ne "" }</A>{/if}
{if not %position.last%}::{/if}
{/section}
{/strip}
</FONT>



{/if}
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #9  
Old 08-08-2006, 06:04 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default

Quote:
Originally Posted by ecommerce
in 4 0 18

Instead of having my company name as the top level in the breadcrumbs like this:

Company :: category :: subcategory :: product


I would like to have:

Home :: category :: subcategory :: product

I would like Home to only appear if the customer is NOT on the HOME PAGE. In other words, there's no need to tell them their in the home page.

i know i got to edit location.ptl

http://forum.x-cart.com/viewtopic.php?t=22497

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #10  
Old 08-08-2006, 08:44 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

thanks chamber, i got it.
__________________
X-Cart 4.0.18 DBest
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 01:50 PM.

   

 
X-Cart forums © 2001-2020