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

Hide breadcrumb on home.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-12-2006, 05:56 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Hide breadcrumb on home.php

Is there a good way to "hide" the breadcrumb on the home.php page?


Thanks
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #2  
Old 07-12-2006, 06:02 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

skin1/customer/home.tpl

Code:
{if $main eq "catalog" and $current_category.category eq ""} {else} {include file="location.tpl"} {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 07-12-2006, 06:12 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default

Thanks alot Phil, it worked a treat!
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #4  
Old 08-03-2006, 08:34 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

Works great! on 4 0 18

however, how can we change the "company name" to "Home"?

But still keep it as a link.
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #5  
Old 08-03-2006, 09:09 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

Code:
{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%}&raquo;{/if} {/section} {/strip} </FONT> {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #6  
Old 08-03-2006, 09:21 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

phil, ur da man! works good!

except ur code gives arrows. >> between crumbs

for those who might not want the arrows and want the ::

use

{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}
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #7  
Old 09-06-2006, 01:27 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default Re: Hide breadcrumb on home.php

I want location.tpl (breadcrumb) to only

appear if visitor is looking at a category or product page.

Else,

dont show it.


Is this the right way

skin1/customer/home.tpl


Code:
{if $main eq "catalog" and $current_category.category eq ""}
{else}
{include file="location.tpl"}
{/if}
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #8  
Old 09-06-2006, 02:04 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Hide breadcrumb on home.php

Quote:
Originally Posted by ecommerce
I want location.tpl (breadcrumb) to only

appear if visitor is looking at a category or product page.

Else,

dont show it.


Is this the right way

skin1/customer/home.tpl


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

move the include between the if and else
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #9  
Old 09-06-2006, 03:01 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default Re: Hide breadcrumb on home.php

Like this?

Code:
{if $main eq "catalog" and $current_category.category eq ""}
{include file="location.tpl"}
{else}
{/if}
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #10  
Old 09-06-2006, 03:24 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Hide breadcrumb on home.php

Quote:
Originally Posted by ecommerce
Like this?

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

you can take out the else if you wanted to as well, but yea
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
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 08:02 AM.

   

 
X-Cart forums © 2001-2020