How can we dispose of the "Home" breadcrumb on the front page? It's redundant.

Comments

Samat Jain’s picture

I'm not sure what you mean: the logic for the display of breadcrumbs is:

if ($breadcrumb) print $breadcrumb;

which only displays the bread crumb if Drupal tells it to (i.e. it is not theme specific).

Could you describe the problem in more detail? Provide a test site or a screenshot?

CrowChick’s picture

Here's a shot of the main page (it's in the subdirectory "test" right now):
http://www.mangapunk.com/screenie.gif

Notice the "Home" breadcrumb? What could be causing this? It did not happen with other PHPtemplates.

CrowChick’s picture

Actually, wait, it DOES happen on other PHPtemplates. If no answer is forthcoming here, I shall take it up with PHPtemplate.

Samat Jain’s picture

Just wondering, is that page "/node", or is it a taxonomy/category node list?

A breadcrumb trail containing only "Home" can appear on taxonomy/category pages if Drupal cannot figure how to construct the trail. This occurs when you're vocabulary is multi-hierarchal.

I don't see the problem at http://www.mangapunk.com/test/ (though I do in the screenshot), and I'm unable to replicate this problem myself...

CrowChick’s picture

The mangapunk.com/test default theme is xtemplate based, so you don't see the problem. The page in the screenshot is the index page of mangapunk.com/test with the USER-APPLIED theme Sands. I.e., you have to get an account and change the default them to see it.

CrowChick’s picture

Status: Active » Needs review

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

Status: Needs review » Closed (won't fix)

Glad you got it fixed!

I still can't replicate this problem.. so I'm hesistant to add a fix for it.

milos.kroulik’s picture

Thnaks, it still works for me after all these years.