Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing breadcrumbs from main cat pages

Removing breadcrumbs from main cat pages

Locked

Views: 1,450

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
30 Jun 2006, 5:11 AM
#1
magicpants avatar

magicpants

Zen Follower

Join Date:
Aug 2005
Posts:
314
Plugin Contributions:
0

Removing breadcrumbs from main cat pages

Okay, I feel lame for not being able to figure this out on my own. I've used clydejones' technique for removing the breadcrumbs from the main page. I'd like to also remove it when in a top category. But, it should display when in one of the subcategories and on the product_info page.

I know I just need to alter the conditional statement, but can't get something to work right. The top categories have a parent_id of 0, but i can't seem to get something like parent_id>0 to work in the conditional.

Now that I think about it, the top cat links lead to the tpl_index_categories page, the subcats lead to the tpl_product_listing page. Not sure if that helps, but I'm confused. :wacko:

Here's the code to remove it from the main page:

<!-- REMOVING Breadcrumbs on main page-->
<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' && ($current_page!='index' || (int)$cPath>0 )) { ?>
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->
1 Jul 2006, 4:50 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Removing breadcrumbs from main cat pages

You're in a top-level category, then this will be true:```
$cPath == $current_category_id

1 Jul 2006, 11:13 AM
#3
magicpants avatar

magicpants

Zen Follower

Join Date:
Aug 2005
Posts:
314
Plugin Contributions:
0

Re: Removing breadcrumbs from main cat pages

Thank you Dr. Byte!