Been modifying a few PHPTemplate themes for my site, and I noticed that on the home page of my Drupal test site, a "home" breadcrumb is always displayed. Anybody else have this problem and/or a solution?

Comments

oc’s picture

Which themes were you using that exhibited this behavior?

CrowChick’s picture

Sands, Connections and Friends Electric.

CrowChick’s picture

I edited my page.tpl.php file thusly:

Where it said:
<?php if ($breadcrumb) print $breadcrumb; ?>

I replaced it with:
<?php if ($_GET["q"] == variable_get("site_frontpage",
"node")){}
else if ($breadcrumb) {print $breadcrumb;} ?>

It seems to work.

Samat Jain’s picture

Hrm, think I figured this out... or at least a way to cause it.

If you set Drupal to have a different front page than "node", when you visit "node", it will contain the meaningless breadcrumb containing only a link back to the front page.
__
Personal home page | Rhombic Networks: Drupal-friendly web hosting