Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm requesting to be able to completely disable the breadcrumbs, and to have a block with breadcrumbs.
the nicest way i can see to do that, is to make a module for it.
posting it against menu, as that seems to be the best place.
Comments
Comment #1
sunHoly cow. What an awesome idea!
Should be fairly easy -- still possible for D7?
Comment #2
alexanderpas CreditAttribution: alexanderpas commentedI guess not, since we're already in code slush. (4 months before the first reply... I love Open Source ;) )
Comment #3
Edgar Saumell CreditAttribution: Edgar Saumell commentedsubscribing
Comment #4
stephthegeek CreditAttribution: stephthegeek commentedJust had the same thought and went looking for an issue. Thumbs up for this, and it's in line with the way other page content has been going in Drupal.
Comment #5
dman CreditAttribution: dman commentedFWIW, I have just done something similar now in a sandbox module for D6. Mostly trivial and easy.
http://drupalcode.org/viewvc/drupal/contributions/sandbox/dman/breadcrum...
You can get it by going
cvs co -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal-contrib -d breadcrumb_block contributions/sandbox/dman/breadcrumb_block
... not sure if it's worth a stand-alone project yet. Maybe.
Options on the block config page include:
... Now I can place breadcrumbs in the $header from the UI :-)
Until now this has been regarded as a theme thing, but it can also be done through a module, and I prefer managing it like this. Some code taken (with respect) from Zen theme which provides some of this functionality also.
Just making a note here as it's the search result I found when looking for previous solutions.
Comment #6
jbrown CreditAttribution: jbrown commentedThis is awesome. We need a proper breadcrumbs api in D8.
Comment #7
dman CreditAttribution: dman commentedLess dodgy now, I found I can use hook_preprocess_page() to nullify the default breadcrumb rendering.
@me happy now.
Thinking this really is worth a small project of its own. For incubation if nothing else.
Comment #8
klonos...coming from #576290: Breadcrumbs don't work for dynamic paths & local tasks after Daniel's suggestion in post #133. +1 for this as a separate module too!
Comment #9
sunhttp://drupal.org/project/breadcrumb
Comment #10
effulgentsia CreditAttribution: effulgentsia commentedI just today had to add this code to a D6 site:
and this code to a D7 site:
in order to not display a breadcrumb when the only link in it is "Home", so for this and many other reasons, +1 to this issue for D8, with some config options as per #5.
Note also some of the UI discussion in #897768: Breadcrumb can show only one trail item, making it look like an action. Would be good to collate some more UI research on what would make for sensible defaults.
Comment #11
effulgentsia CreditAttribution: effulgentsia commented#10 was x-post with #9. Awesome! Glad we have a D7 contrib project for pushing this along!
Comment #12
sunYou will be able to simplify and speed up your code after #907690: Breadcrumbs don't work for dynamic paths & local tasks #2 landed. It introduces hook_menu_breadcrumb_alter(). :)
Comment #13
Jeff Burnz CreditAttribution: Jeff Burnz commentedOh dear lord let this happen - subscribe...
Comment #14
Scott J CreditAttribution: Scott J commentedIf anyone needs a breadcrumb block right now, Blockify module will do it for you.
Comment #15
xjmRelated: #1811792: drupal_set_title() should not be necessary to set the homepage title
Comment #16
Crell CreditAttribution: Crell commentedBreadcrumbs are now blocks. Turn the block off if you want. :-)