I have the path and view sub modules enabled. I created a 'forms/*' path type breadcrumb, with a title of 'Forms' and a path of 'forms'. The intention would be to have a 'Home > Forms' breadcrumb for paths like:

forms/fred
forms/bob
forms/jane

It doesn't seem to be working. I have it enabled in 'Site Configuration/Custom Breadcrumb Settings'. The field help there indicates the wildcard is a '*'. Did you really use that, or did you use a '%' maybe?

Assuming that is fixed (or something I have configured incorrectly), my 'hope' is I'll also be able to create, for example, a 'forms/fred/*' breadcrumb that will produce a 'Home > Forms > Fred' breadcrumb for all pages with URLs under that. In other words, I'm hoping it finds the 'most detailed wild card path' and uses that. Technically, 'forms/*' would also suit the evaluation of a link like, say, 'forms/fred/doh'. But since 'forms/fred/*' is 'closer' to 'forms/fred/doh', I'm hoping it will use that.

Comments

MGN’s picture

Status: Active » Fixed

Thanks. There was a one-character typo in custom_breadcrumbs_paths.module. I just committed the fix. The patch is at http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/custom_brea...

notebene’s picture

That was fast! Working like a champ, thanks, including my expectations in my final paragraph, just tested that.

While I could get the update module this morning (since you snuck it in before the chron ran to apply the fix), I was curious as to how to apply what you link in your responses, if I find myself in a position to want to test them 'before' the next day? I have cygwin and have used that in the past to apply .patch files to modules. I tried copying what you linked and saving it as a .patch file and running it through cygwin, but it doesn't work. Is there another process for these types of patches you link?

MGN’s picture

Can you explain how it didn't it work? It should apply like any other patch. Instructions for patching files with cygwin are at http://drupal.org/node/32875, but I am afraid I don't do much patching on windows.

Status: Fixed » Closed (fixed)

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

liquidcms’s picture

Status: Closed (fixed) » Active

sorry.. re-opening... but possibly specific issue just for Search??

i have these path rules:

search/% Search =>
search/%/% Search =>

i am trying to simnply have bcrumbs as Home => Search (no link)

for search/node this is what i get; but for search/node/junk i get Home => Search => Search

MGN’s picture

Status: Active » Closed (fixed)

To override the default search breadcrumb (or any other breadcrumb provided by another module), you'll need to enable/use custom_breadcrumbsapi to set the breadcrumb for that module page. In the select box for module pages, you should see something like 'modules/search/search-results'. Select that template, then set up the titles and paths as you would for any other custom breadcrumb.

I am closing this issue since this isn't actually related to the original issue. If you want to follow up, go ahead and open a new issue. Thanks.