When I choose "disable all breadcrumbs" it should disable them all. It doesn't. It does disable most of them, but there is one breadcrumb on my site that will not go away: Event Calendar.

I've created an Event Calendar on my site as one of the links off the home page.
The link is event_calendar which is a URL alias to the regular link calendar-node-field-time/month. I suppose that when calling up the event calendar, there are other hidden parts of the link behind what shows, specifying the actual month to call up such as /2012-05. Don't know if this is why it fails. Note that only the alias event_calendar appears in the URL.

I thought I would try placing the url in the selection box since "Disable ALL" didn't work.
I tried using event_calendar, calendar-node-field-time/*, and other things, without success.
All the other links can have their breadcrumbs disabled but it does not work on the calendar.

Besides this, the breadcrumb that should appear is "Home" and what appears instead is "Event Calendar" which is a useless breadcrumb just showing you a link for the page you're already on.

Editing code that creates the breadcrumb, as some have posted, does take out all breadcrumbs, but I was hoping to do it the "correct" way instead because they will come back on upgrades. Thanks.

CommentFileSizeAuthor
#7 1564340.patch492 bytesdamiankloip

Comments

damiankloip’s picture

Removing the breadcrumb in the theme layer will still work, I'm not sure what you mean about it coming back on upgrades? Unless you are using an out of the box theme or something. I'm not sure it's anymore "correct" or not that using this module.

A bit more info on this page would probably be useful, more than just it being a calendar and it's path. Is this a view page?

tobbetobbe’s picture

I have the same problem. For me it´s media gallery pages that still shows the breadcrumb. Pages like this one http://tobbeslabb.se/media-gallery/detail/3/19 are created by the media gallery module. I also tried to disable all breadcrumbs as well as specifying paths. Using Drupal 7.14

DanAnderson-1’s picture

Sorry I should have been more specific. By the "correct" way, I mean using a module such as this.

The "incorrect" (in my opinion) way is to go into the themes folder and add the line:
#breadcrumb { display:none; }
into the style.css file. That method works to remove all breadcrumbs, and by the way I had done this on 7.12 and then when I upgraded to 7.14 I lost that setting because the files got replaced. So, I was hoping for a more official way to get it done.

I have one more bit of information to add. On the event_calendar link, when this module is not enabled, the breadcrumbs on the calendar view are Home - Event Calendar. When this module is enabled, and disable ALL breadcrumbs is in effect, the (only) breadcrumb shown on the calendar page is Event Calendar. Clicking it has no effect because it is the page you're already on. In this case the Home breadcrumb goes away as well as all the ones on other pages. Not sure if that is helpful or not.

I'm sure as a novice user I could have made some sort of configuration mistake with my views or something. Despite this fact, I'm certain that this really is a breadcrumb that should not show. Maybe a lot of people don't use the calendar with this module. I'd show you my site but it's not public. Anyway, I've gone back to the style.css file hack for the time being until this gets fixed. Thanks!

damiankloip’s picture

It's hard to tell, This module usually deals with views ok. It may be the module weight or something. Not too sure right now. If you put that in your theme it shouldn't get overridden my core updates, only if you were modifying the core themes, which probably isn't a good idea anyway.

The other way would be to remove the "print $breadcrumb" variable and markup from your page.tpl.php template file. Then it will definitely be gone. This is also probably alot better than hiding in the css.

MentalFS’s picture

I've disabled "all" breadcrumbs, but on a taxonmy term listing (/taxonomy/term/1) it still appears.

maaaarius’s picture

I'm using 7.x-1.3 and it seems like the breadcrumb still shows up on the comment page if you hit the preview button, or the reply link on another comment. I'm using the comment module from core.

damiankloip’s picture

Status: Active » Needs review
StatusFileSize
new492 bytes

yes, you might be right. I think we could possibly move all the logic to hook_preprocess_page instead. This patch should work.

damiankloip’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
maaaarius’s picture

I have tested the patch, but my site won't work after I apply it, so I'm back to the original file again. I'm unable to enable the module if the module is patched. Sorry for not checking back sooner.

damiankloip’s picture

Hmm, weird. Did you apply this patch with git etc? It shouldn't break your site....

maaaarius’s picture

Sorry for delays.... again. I used the patch command to apply the patch. I'm not really used to git.

nntechnology’s picture

I think this is the same issue, on a view with a contextual filter the breadcrumb reappears when filtering. Have tried disabling all as well as using path settings exclusion with no joy.

As previous post would be nice for this to work without having to rummage around in code...

damiankloip’s picture

Sorry, but we can't just commit fixes so they are easier to test. If the proposed solution is proved to fix issues, then it will get committed.

jzornig’s picture

Status: Needs review » Reviewed & tested by the community

I've applied the patch from #7 against the current 7.x-1.x-dev and it is now removing breadcrumbs on views pages I had added as tabs to user account pages. Before the patch these breadcrumbs were still appearing.
Note: This patch MUST be applied to the 7.x-1.x-dev not the 7.x-1.3 release, or you will get a broken site.

damiankloip’s picture

Thanks for testing! yeah, you should generally apply this patch with git and NOT with patch command.

damiankloip’s picture

Status: Reviewed & tested by the community » Fixed

Pushed to 7.x-1.x branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

potassiumchloride’s picture

We are still running 7.x-1.3 on a production site. Any chance for a new stable release of this module so I can get rid of breadcrumbs being added by my calendar (and not removed with Disable ALL)? Thanks.