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)
-   -   Hide breadcrumb on home.php (https://forum.x-cart.com/showthread.php?t=23207)

photo 07-12-2006 05:56 AM

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


Thanks

PhilJ 07-12-2006 06:02 AM

skin1/customer/home.tpl

Code:

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


photo 07-12-2006 06:12 AM

Thanks alot Phil, it worked a treat! :D

ecommerce 08-03-2006 08:34 AM

Works great! on 4 0 18

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

But still keep it as a link.

PhilJ 08-03-2006 09:09 AM

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}


ecommerce 08-03-2006 09:21 AM

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}

ecommerce 09-06-2006 01:27 PM

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}

inebriate 09-06-2006 02:04 PM

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

ecommerce 09-06-2006 03:01 PM

Re: Hide breadcrumb on home.php
 
Like this?

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

inebriate 09-06-2006 03:24 PM

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

ecommerce 09-06-2006 06:02 PM

Re: Hide breadcrumb on home.php
 
thanks man.

infinity773 09-07-2006 11:12 AM

Re: Hide breadcrumb on home.php
 
{if $main eq "catalog" and $current_category.category eq ""}
{include file="location.tpl"}
{else}
{/if}

its not working for me...
I have location on main home page and its gone from others pages...
and I need to delete it just from home page...

thanx

ecommerce 09-07-2006 11:21 AM

Re: Hide breadcrumb on home.php
 
{if $main eq "catalog" and $current_category.category ne ""}
{include file="location.tpl"}
{else}
{/if}

try the above and let me know.

infinity773 09-07-2006 11:37 AM

Re: Hide breadcrumb on home.php
 
Thanx... now better...
only one problem - location gone from products pages...

So I have it on categories and subs pages and its gone from home page and products pages...

I would like to have it on products pages...

thanx...

MichelleT 09-12-2006 06:31 PM

Re: Hide breadcrumb on home.php
 
Thanks for the code, but does anyone know how to get rid of the line breaks that are left over on the homepage where the breadcrumb used to be?

justme 09-15-2006 02:11 PM

Re: Hide breadcrumb on home.php
 
To add breadcrumbs to the products page....

In File: /customer/main/product.tpl

Directly below this line:
{* $Id: product.tpl,v 1.96.2.22 2005/06/03 05:46:02 mclap Exp $ *}

Add this:
{include file="location.tpl"} <br><br>


justme


All times are GMT -8. The time now is 09:44 PM.

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