By CrowChick on
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?
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
Which themes were you using
Which themes were you using that exhibited this behavior?
Sands, Connections and
Sands, Connections and Friends Electric.
Fixed... I think.
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.
Hrm, think I figured this
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