Forums / Templates, Stylesheets, Page Layout / hiding breadcrumbs if I am on the homepage failing

hiding breadcrumbs if I am on the homepage failing

Locked

Started by freef4ll on 29 Dec 2006, 3:04 PM · Views: 1,556

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
29 Dec 2006, 3:04 PM
#1
freef4ll avatar

freef4ll

New Zenner

Join Date:
Nov 2006
Posts:
16
Plugin Contributions:
0

hiding breadcrumbs if I am on the homepage failing

if (DEFINE_BREADCRUMB_STATUS == '1' and $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR!="Home")){

Does not actually work.

echo this:
$breadcrumb->trail(BREAD_CRUMBS_SEPARATOR)

You get:
Home

So, check the if statement again:
DO NOT SHOW BREADCRUMBS IF IT IS "Home".

So, I checked, if you set it to:
if (DEFINE_BREADCRUMB_STATUS == '1' and $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR=="Home")){

It hides the breadcrumbs. So what on earth is going on?

Any ideas?

29 Dec 2006, 6:29 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: hiding breadcrumbs if I am on the homepage failing

In v1.3.7 you'll find it working this way:```php

<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Dec 2006, 11:02 PM
#3
freef4ll avatar

freef4ll

New Zenner

Join Date:
Nov 2006
Posts:
16
Plugin Contributions:
0

Re: hiding breadcrumbs if I am on the homepage failing

Thats perfect and funnily enough I was looking for some such variable when I posted my earlier questions that you answered.

Thanks for you help.

26 Mar 2007, 6:57 PM
#4
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: hiding breadcrumbs if I am on the homepage failing

ummm so how can I hide it from home page?

26 Mar 2007, 7:16 PM
#5
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: hiding breadcrumbs if I am on the homepage failing

doh.. nevermind