Limiting breadcrumbs by path and choosing where to insert
deviantintegral - January 29, 2008 - 17:33
| Project: | Custom Breadcrumbs |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
Hi,
I've attached a patch which does the following:
- Allows for breadcrumbs to be created which are filtered by a path, similar to block filtering. This means that you can create multiple breadcrumbs for the same node type, but ensure that they work across different sections of the site.
- Allow for the breadcrumb that's generated to be appended to the beginning of an existing breadcrumb, to the end of the existing breadcrumb, or replace outright. This is useful (in my case) to add missing links in the middle of an existing breadcrumb.
I know it's bad form, but this patch is against the 1.2 version as that's what the site I'm working on is using. But if the functionality looks good, I will port it to whatever version it needs to be :).
Thanks!
--Andrew
| Attachment | Size |
|---|---|
| limit_by_path_and_insertion_placement.patch | 8.79 KB |

#1
Hmm, I got an error.
- I uninstalled custom breadcrumbs.
- Then I installed the patch, and uploaded patched files.
- Then I enabled the it in /admin/build/modules
I got this error:
Any thoughts about what I may have done wrong?
Thanks! Cause this would be great functionality
Scott
#2
ugh.
Ok, so I tried to uninstall this patched module (after disabling it), and get the following error:
Now I'm kind of stuck. where do I go from here?
Thanks for any help!
Scott
#3
No suggestions? :(
#4
Hi -
has there been any progress on this?
I'm no longer grappling with the error above (reinstalled site a while ago)...
But this functionality would be very useful on other sites -- especially adding before an existing breadcrumb.
One example illustrates how useful this would be:
Another module - Node hierarchy, automatically shows children of children of children (etc) in order, in the breadcrumb. However, if the content-type were called 'project', and I wanted the url to go something like: http://url.com/projects/parent/child/grandchild/greatgrandchild
then it would make sense for the breadcrumb to also go something like:
Home › Projects › Parent › Child › Grandchild › Greatgrandchild
But AFAIK, there is no way to do this using custom breadcrumbs as it is (each breadcrumb needs to go on it's own line, so a specified number of crumbs is all we can do).
However, adding to the beginning would allow us to take advantage of the NH module's existing functionality, and still customize our breadcrumb.
So, I'm wondering - has anyone had success with this patch? Or deviantintegral - did you get some updated version of this to work for your own use (if so, care to share)?
Thanks in advance for any help, suggestions, leads...
:)
Scott
#5
Hi,
Apparently I didn't get updates on this issue via email, so I had no idea anyone else was interested! I haven't changed anything since I made the patch, and am currently using it successfully on a live site. Hopefully you got it working.
It would be great if the maintainer could give me feedback if I'm on the right track, so this can be improved and integrated.
Thanks!
--Andrew
#6
I manually added this patch and I receive the following error:
Did I mistype or is this an issue? Any help would be appreciated!
#7
Did you run update.php after applying the patch?
You might find it easier to not apply it manually: http://drupal.org/node/60179
#8
Hey, thanks for the alternative to manually patching...I tried Tortise (I believe) but I need to play around with the "how-to" a little more because I don't understand quite how it works..
But I re-did the manual patching, ran update.php and everything works beautifully.
Thanks for your reply!