I am trying to set up breadcrumbs for paths, however, the use of a wildcard doesn't seem to work. My actual use case is of users for whom I've set the path to team/*. Setting a custom breadcrumb for team/* doesn't reveal any difference in the rendered breadcrumb, it simply shows home>>[username].
Just to make sure this is not a problem with users, I tried to set up a custom breadcrumb for a given node path with the use of a wildcard. This also didn't work. However for a given path without the use of a wilcard did work, so it seems that wildcards are the problem.
Has anyone else succeded in making use of wildcards?
Comments
Comment #1
Woggers commentedI will subscribe and say that in current version wildcards paths do not work.
I am having similar issues.
Comment #2
mortendk commentedit looks like its the whole "users/*" thats the problem cant neither get the users path to be recognized
Comment #3
nathanjo commentedI was able to found out this issue today. Anyone was able to found the cause?
Comment #4
tomasbedrich commentedTry changing custom_breadcrumbs_common.inc line 19 to:
$path = drupal_get_normal_path($curpath);I think it is a small mistake in this module, but maybe originally it should work another way.
Comment #5
attiks commentedAttached patch allows you to use wild cards for the specific path (ex: 'node/%/register')
Comment #6
moniuch commentedTried that patch and neither * or % did work for me :(
The pattern was" company/* or "company/%" so these were clean URL aliases (just like original poster mentioned) rather than system paths.
Comment #7
attiks commentedThis will not work with aliases, only with the real path
Comment #8
ipwa commentedAny chance of getting this to work with aliases too?
Comment #9
colanLet's get this working with aliases.
Comment #10
ipwa commentedWilling to pay a bounty for getting wildcards on path aliases working on custom breadcrumbs for paths
Comment #11
koppie commentedActually it looks like this works now, at least as of the latest stable version. There's an option in the module settings to allow wildcards. If you add a path definition, it will play nice with url aliases. See http://drupalcode.org/project/custom_breadcrumbs.git/blob_plain/refs/hea...