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

how to edit navigation path (location.tpl)?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-05-2004, 09:22 AM
 
sarahnk sarahnk is offline
 

Advanced Member
  
Join Date: Jan 2004
Location: New York, NY
Posts: 58
 

Default how to edit navigation path (location.tpl)?

How do i edit the location.tpl so that the Company name does not show up?

This
Category : Item

Instead of this:
CompanyName: Category : Item
__________________
3rd site: 4.1.0 (currently working on)

2nd site: Version 4.0.12

X-Cart version 3.5.14
PHP 4.3.3 details
MySQL server 4.0.15
Reply With Quote
  #2  
Old 11-06-2004, 11:05 AM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Default Re: how to edit navigation path (location.tpl)?

Quote:
Originally Posted by sarahnk
How do i edit the location.tpl so that the Company name does not show up?
Category : Item
Instead of this:
CompanyName: Category : Item

Try:

Code:
{* $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} {if not %position.first%}{$location[position].0}{else}HOME{/if} {if $location[position].1 ne "" }</A>{/if} {if not %position.last%}>{/if} {/section} {/strip} </FONT> {/if}

Just remove "HOME" text if you do not want anything there.
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote
  #3  
Old 03-14-2005, 06:08 PM
 
CopperB CopperB is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 58
 

Default

I want to remove the location on the homepage only. In my location.tpl there is no "Home" reference as 27stars mentioned.

Code:
{* $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}

Any ideas? Thanks
__________________
CopperB

XCart Gold -> v4.0.11
PHP -> v4.3.10
MySQL -> v4.0.22
Apache -> v1.3.33
Smarty -> v2.6.3
Reply With Quote
  #4  
Old 03-14-2005, 07:09 PM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Default

Quote:
Originally Posted by CopperB
I want to remove the location on the homepage only. In my location.tpl there is no "Home" reference as 27stars mentioned.

try change first and last lines to:

Code:
{if $main eq "catalog" and $current_category.category eq ""}{else}{if $location} .... {/if}{/if}
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote
  #5  
Old 03-15-2005, 12:00 PM
 
CopperB CopperB is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 58
 

Default

Thanks for the quick reply. I'm not sure what you mean by first and last lines. What 2 lines of the code would I replace with

Code:
{if $main eq "catalog" and $current_category.category eq ""}{else}{if $location} .... {/if}{/if}

Thanks again.
__________________
CopperB

XCart Gold -> v4.0.11
PHP -> v4.3.10
MySQL -> v4.0.22
Apache -> v1.3.33
Smarty -> v2.6.3
Reply With Quote
  #6  
Old 03-17-2005, 01:35 PM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Default

Quote:
Originally Posted by CopperB
Thanks for the quick reply. I'm not sure what you mean by first and last lines. What 2 lines of the code would I replace with
Thanks again.

Try this:

Code:
{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *} {if $main eq "catalog" and $current_category.category eq ""}{else}{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}{/if}
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote
  #7  
Old 03-17-2005, 01:56 PM
 
CopperB CopperB is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 58
 

Default

Worked great. Exactly what I was after.

Thanks
__________________
CopperB

XCart Gold -> v4.0.11
PHP -> v4.3.10
MySQL -> v4.0.22
Apache -> v1.3.33
Smarty -> v2.6.3
Reply With Quote
  #8  
Old 07-28-2005, 03:55 AM
 
Tristan Tristan is offline
 

Member
  
Join Date: May 2005
Posts: 12
 

Default

Hello

Thanks for the info on how to edit the location.tpl

Is it possible to edit this further?
Basically i would like to make another location.tpl and place this in related_products.tpl.

Code:
{include file="location2.tpl"}

I am trying to get location2.tpl to only show the category(clickable) of the current product you are viewing. Currently it shows:

Home :: The Category :: The Product Name

Any help would be greatly appreciated
Thank You
__________________
Version 4.0.13

www.urbanspirit.co.uk
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 11:40 PM.

   

 
X-Cart forums © 2001-2020