Closed (fixed)
Project:
Custom Breadcrumbs
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 May 2009 at 17:49 UTC
Updated:
25 May 2009 at 15:40 UTC
I tried to use version 6.x-1.4 with two different custom breadcrumbs set up for node type 'page', with different visibility filters. Individually they both work but only the first one is seen. I notice there is a patch at http://drupal.org/node/276817 that 'needs work' to fix this. I looked at 6.2-dev to see what was in it and I see that it has paths selection as an alternative to node type. This is exactly what I want anyway. The question is - is there a way to put a wild card into the path. I want to define the breadcrumb for paths 'internal', 'internal/meetings', 'internal/reports' etc., with the breadcrumb being the same in all cases.
Comments
Comment #1
MGN commentedThis is not currently possible, but would not be difficult to implement. I'll see if I can work it into custom_breadcrumbs_paths. Thanks for the suggestion!
Comment #2
Tony Sharpe commentedThanks, that would be great!
Comment #3
MGN commentedI just added this feature to 6.x-2.x-dev custom_breadcrumbs_paths. It should be available in the next nightly dev snapshot if you would like to test it out.
Comment #4
Tony Sharpe commentedThanks very much for this. I've just downloaded dev - May 10th, but I don't see anything different. What syntax should I use for the path to cover 'internal', 'internal/meetings', 'internal/reports' etc
Thanks again.
Comment #5
MGN commentedSorry I haven't had a chance to document it yet. I've made the wildcard matching optional, so you need to activate it by checking the box Use wildcard pattern matching in paths at the custom breadcrumb admin settings page (admin/settings/custom-breadcrumbs). Then, instructions about using the wildcard
will appear on the form where you add the specific path custom breadcrumb.
EDIT: The reason its optional is because in order to do the matching, custom breadcrumbs must load and try to match all of the breadcrumbs in the custom_breadcrumbs_paths table. There might be a performance cost associated with this option on sites with many custom_breadcrumbs_paths breadcrumbs. By default I am leaving this off until it can be properly tested.
Comment #6
Tony Sharpe commentedFantastic. It works exactly as required.
Thank you.
Comment #7
MGN commentedGreat. Please be on the lookout for anything that doesn't work as expected. It has not been tested thoroughly yet, and we are still fixing the views support. Your feedback is appreciated!