Hi All,
I have a breadcrumb in which the middle link should just be a placeholder that links to nothing. How can I do this.
So, in this example, I'd want "Two" to just be text, without a link:
One > Two > Three
Thanks for any help!
Hi All,
I have a breadcrumb in which the middle link should just be a placeholder that links to nothing. How can I do this.
So, in this example, I'd want "Two" to just be text, without a link:
One > Two > Three
Thanks for any help!
Comments
Comment #1
phil smith commentedUse
<none>for the corresponding line in Paths.Comment #2
ekrispin commentedIt doesn't work with this
<none>, it just puts it in the link and I don't see any support for that in the code.Comment #3
ekrispin commentedSee in http://drupal.org/node/117528 a simple patch to support unlinked items in the breadcrumb.
Comment #4
David Lesieur commentedThe feature is available in version 6.x-1.3. It has also been implemented for 5.x, but only available from CVS at the moment.
Marking this issue as a duplicate of #117528: Unlinked breadcrumb.
Comment #5
jimmb commentedHello,
Custom breadcrumbs are working for me, but I can't get the current page to not be a link. To be specific, under "Titles" I have:
[title]
and under "Paths" I have:
node/[nid]
But I don't see how you can add
<none>in there anywhere. I've tried a bunch of variations on the instructions above, but nothing is working.If someone could give an example of how to use
<none>with the above code, I would be very appreciative!Jim
Comment #6
David Lesieur commentedIf you have the 6.x version, try using
<none>in Paths instead of node/[nid].For 5.x, you need the CVS version of the module to do this — 5.x-1.2 won't do.
Comment #7
jimmb commentedThanks for the reply. When I added the latest CVS versions of the files, it wouldn't show up in the Admin area for some reason. But I copied the necessary code over as suggested here to 5.x-1.2, and now the module shows up in "Site building".
I then took your advice with the
<none>placement, and it worked :) The only problem now is that it takes out the little grey arrow (i.e. >>) between the elements. That's pretty crucial to the overall breadcrumb - do you happen to know how to get that back??Best,
Jim
Comment #8
David Lesieur commentedStrange... Normally this should have nothing to do with Custom Breadcrumbs since the output is handled by theme('breadcrumb'). You might want to check how your theme implements that theme function. Look for a function named phptemplate_breadcrumb() or yourthemesname_breadcrumb() in your theme's template.php. Or if your core includes/theme.inc file has been edited, you might want to revert those changes. ;-)