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?

CommentFileSizeAuthor
#5 i1327276.patch1.49 KBattiks

Comments

Woggers’s picture

I will subscribe and say that in current version wildcards paths do not work.

I am having similar issues.

mortendk’s picture

it looks like its the whole "users/*" thats the problem cant neither get the users path to be recognized

nathanjo’s picture

I was able to found out this issue today. Anyone was able to found the cause?

tomasbedrich’s picture

Status: Active » Needs review

Try 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.

attiks’s picture

StatusFileSize
new1.49 KB

Attached patch allows you to use wild cards for the specific path (ex: 'node/%/register')

moniuch’s picture

Tried 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.

attiks’s picture

This will not work with aliases, only with the real path

ipwa’s picture

Any chance of getting this to work with aliases too?

colan’s picture

Status: Needs review » Needs work

Let's get this working with aliases.

ipwa’s picture

Willing to pay a bounty for getting wildcards on path aliases working on custom breadcrumbs for paths

koppie’s picture

Status: Needs work » Fixed

Actually 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...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.