Closed (fixed)
Project:
Menu Breadcrumb
Version:
6.x-1.3
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2010 at 03:46 UTC
Updated:
9 Nov 2010 at 02:10 UTC
Can You please add an option to hide the home link. For example Home > About > Company, if I don't want to display the home link its hard. I can't handle in css because don't have a class or id that unique to each other.
For short implementation any can help me do a patch please...
Any respond is very appreciated. Thanks very much in advance.
Comments
Comment #1
jho1086 commentedit is possible? Please reply ...
Comment #2
xurizaemonAt least a couple of posts documenting this can be found by googling for "remove home link from drupal breadcrumbs". I think some themes offer it as an option, possibly there's a module or two which do it too. I'm not really keen to keep adding breadcrumb customisation code to this module when lots of other approaches are available already.
The following *untested* theme code should remove the first item from the breadcrumbs, then run phptemplate_breadcrumb() in its place. You'll need to adjust this example code to suit your site.
1. Your theme is probably not called 'mytheme', so you need to rename this function to suit your theme and put it in your template.php
2. You probably want to add some check(s) to ensure it only removes the 'Home' link, rather than blindly removing the first element without any regard to what it is.
Good luck!
Comment #3
xurizaemonLooks like custom_breadcrumbs module may have this option available?
Comment #4
bremskraft commentedWhere? I just downloaded custom_breadcrumbs and I don't see that option anywhere.
Comment #5
xurizaemonSorry bremskraft, I haven't used that module myself, but thought I saw mention of that feature when answering your question. Good luck!
As both of you are now looking for support on the same topic, I highly recommend that you attempt to document the solution you find works for you, and thus can give some benefit back to other users. Even just linking from this thread to the solution you eventually discover in another issue will help others in your situation. (And that might even be you, six months from now. It's happened to me!)