I just found your module, and was wondering what the difference is between Path Breadcrumbs and Custom Breadcrumbs (the long-existing breadcrumbs module that I've recently taken over: #1793544: Offering to maintain Custom Breadcrumbs.

Would you be so kind as to explain it on your project page? Once I'm aware of the differences, I'll do the same on the Custom Breadcrumbs page.

I'm asking because I'm somewhat concerned that there may be overlap/duplication, and we may be able to work together on this. Thanks!

Comments

omerida’s picture

One KEY difference, in my opinion, is that this module does not use the Token module. Its built in replacements are more limited.

danilenko_dn’s picture

Path breadcrumbs based on CTools, what do PB more flexible for developers.
Custom Breadcrumbs is a box solution without power of ctools.

Spleshka’s picture

@omerida, wrong. PB uses Chaos Tools placeholders, but they provides all power of Token and Entity Token modules.

PB is much more flexible to build breadcrumbs than CB. CB provides box solutions while using PB you can configure breadcrumbs as you like.

omerida’s picture

I'll have to check my setup again, because when I looked, some entity tokens were not available via this module that were available in custom breadcrumbs. Particularly for entity reference fields, but I think also for a datetime field.

Spleshka’s picture

Entity tokens are not displayed in 2.x branch, but working if enter them manually :) I'm going to fix this in new releases.

danilenko_dn’s picture

Can you write some example of using one, please?

Spleshka’s picture

Examples of using PB? Building any breadcrumbs you can imagine :) You can even show different breadcrumbs for the same page (choosing any display conditions).

jiakomo’s picture

I think both modules have the same goals (but use different strategies), so you should join forces. Although I have not used both modules extensively, I think that PB can do what CB does, but also more.

colan’s picture

I'd be willing to deprecate CB in favour of PB if:

  1. We can get a list of features in CB that are missing from PB, and
  2. we get those features added to PB.

We can use this as a meta-issue to track all of these by maintaining the list in the description as we add items to it. Please all start coming up with the list items.

Spleshka’s picture

Great, I like this!

@colan, I think we should do this way: I will provide all features that are missing from CB, and you will provide all features missing from PB. Then I will implement all missing features. How do you like this idea?

Spleshka’s picture

See table with modules' features:

Feature Custom Breadcrumbs Path Breadcrumbs
Easy to start ++ +
Global "Home" link title + -
Rich snippets support - +
Single export/import - +
Bulk export / Features support - +
Change breadcrumb delimiter - +
Integration with i18n (multilingual) - +
Build breadcrumbs based on menu hierarchy + -
Adds custom classes to navigation + +
Possilty to build custom breadcrumbs on custom page(s) - +
Performance ? +
jiakomo’s picture

I think that #1849400: Hierarchical taxonomy terms breadcrumb for a node is also a feature from CB that PB is missing.

Spleshka’s picture

@jiakomo, wrong. See http://drupal.org/node/1849400#comment-6772276 - you could build taxonomy hierarchy based on any node field.

colan’s picture

@colan, I think we should do this way: I will provide all features that are missing from CB, and you will provide all features missing from PB. Then I will implement all missing features. How do you like this idea?

Although I recently took over CB, I'm not overly familiar with it - I just wanted to help get some RTBCed issues committed, and put out some releases. So let's all start adding issues to the top of this ticket (as we create or become aware of them) like in #1624830: Plan for Entity Translation 7.x-1.0 release. Click on the edit tab here to add things to the list. I put a note to this effect on the CB project page so we should get more input on this soon.

So yes, let's collect all of the items, and then you can start implementing. ;)

g089h515r806’s picture

There is another module Breadcrumb2. http://drupal.org/project/breadcrumb2/.

It is base on entity API, Rules, link, Views.

NikLP’s picture

It's not clear from the module description or the video I watched if this module supports things like views, panels, etc?

g089h515r806’s picture

Breadcrumb2(http://drupal.org/project/breadcrumb2 ) support Panels very well since beta5.
Breadcrumb2 also support Views.

Spleshka’s picture

@NikLP, module supports all url paths on site. No matter how they was build (views, page manager, drupal core, custom, etc.)

NikLP’s picture

RE #18, it is completely unclear to me how to provide the following solution:

Navigation:

Home
Home > Widgets
Home > Widgets > Widget A

Drupal elements:

Home url (node, whatever) <- handled by Drupal internally
Home url > Widgets view url <- arbitrary path as set in views, the (page, of nodes) view is a "section overview"
Home url > Widgets view url > Widget node url <- a node as listed in the view above

So, I want the Widgets link to appear on that page, and the Widgets and Widget A links to appear on the Widget A page, in the breadcrumbs. This is very simple in CB but I cannot work this out. The documentation needs more examples, if this is indeed possible.

Spleshka’s picture

@NikLP, what is Widget and Widget A? It is not clear for me.

NikLP’s picture

A page view of nodes, and a node page respectively, as I illustrated above...

jpstrikesback’s picture

I really like the way this module works but I cannot get it to take over a set of views breadcrumbs.

/blogs/%/%/% for /blogs/user/year/month

I've made 3 rules:

Blogs/%user[User:name]
Blogs/%user[User:name]/%year[string]
Blogs/%user[User:name]/%year[string]/%month[string]

no contexts set just using a base path of blogs & tokens in the breadcrumbs

Nothing works on this set of views displays...I've made sure views isn't trying to set the breadcrumb, tho it is populating the title for each of those pages

donquixote’s picture

There is a comparison page with a comparison table, maybe you want to add the findings from #11 ?
http://drupal.org/node/533448

joaomachado’s picture

Without path alias support, neither module can work for me. PB does not appear to support url alias which is a problem when the Pathauto modules is reporting over 480,000 installs. http://drupal.org/project/pathauto

I was about to use CB because I have used it before but now going to hold off until this is ironed out. URL alias is a requirement for most of my projects.

Joao

danilenko_dn’s picture

You can use node/%node for example or taxonomy/term/%term and breadcrumbs will apply to an alias. Using paths more useful, because they includes id's, and PB can use all data from node. For example you can build breadcrumbs based on node with needed term-reference (and rule will not apply to another nodes with another term-references). So i think PB is most flexible solution.

susheel_c’s picture

I'd be willing to deprecate CB in favour of PB if:

We can get a list of features in CB that are missing from PB, and
we get those features added to PB.
We can use this as a meta-issue to track all of these by maintaining the list in the description as we add items to it. Please all start coming up with the list items.

Colan,

I see that there's talk of deprecating Custom Breadcrumb for Path Breadcrumb. I hope you realise that the established user base of CB is 10x that of PB. You should probably consider integrating the other way instead... PB=>CB.

My tuppence...

Susheel

greenwe’s picture

So which of the two support URL alias? Anyone who really wants to hit SEO hard is using that module for google ranks.

colan’s picture

@susheel_c: Don't worry; I'm not planning on doing anything like that any time soon, but isn't it a great way to promote discussion on the issue? ;) Basically, I'm trying to herd folks into getting us down to one module in the long-term. It may never happen, but I'd at least like a clear understanding of what the differences are.

susheel_c’s picture

@colan: Thanks for the note mate! I Just wanted that (important) point to be noted. :) I shall rest easy now.

susheel_c’s picture

Issue summary:View changes

Fixed typo.

dmkelner’s picture

Issue summary:View changes

So what have you guys decided? We need a solution that takes advantage of path aliases, but CB is not being maintained. With Drupal 8 on the horizon, what is the logical solution? Thanks!

kalabro’s picture

Hi @dmkelner!

Path Breadcrumbs can be great UI for Drupal 8 breadcrumbs based on Condition Plugins API.
I had initial discussions about PB porting to Drupal 8 with @andypost. As I see it now, we should wait a little bit until https://www.drupal.org/project/page_manager will be ported.

Also, @Spleshka has an idea to move PB core to separate module so other modules will be able to use PB UI not only for breadcrumbs but for any other stuff they can imagine.

When we will be ready to start porting I will add all information and links on PB project page.
Any help will be appreciated!

Best,
Kate

dmkelner’s picture

Kate, thanks for the reply. As long as this will work with views and pathauto then I'm happy to see someone take it forward to D8. I really need a D7 solution right now and in a quandry. I'd rather go with PB if it will move on to D8, but need pathauto. Guess I'll be looking some more!

I'm not really a coder, so not sure what help I can be with the port. Let me know if you think of some way I can help.

kalabro’s picture

Are you talking about this feature?
This task can be done with https://www.drupal.org/project/breadcrumbs_by_path module and it's completely compatible with Path Breadcrumbs.

dmkelner’s picture

Not sure breadcrumbs by path will do it. There is a discussion of its limitations and that is exactly my issue. I have a breadcrumb of Home > Publications > Journal, but there is no valid page for journal. I want to eliminate that component of the breadcrumb. Then, for the pages that come below that (Home > Publications > Journal > Spring 2014) I want to eliminate the Journal component from there as well.

donquixote’s picture

Just saying, both Crumbs and Easy breadcrumbs have breadcrumbs based on path alias.
Not really compatible with Path breadcrumbs, though.

(I am silently following this thread, but don't want to hijack it too much)

dmkelner’s picture

Thanks @donquixote. I'll see if that works for now.

kalabro’s picture

I have a breadcrumb of Home > Publications > Journal, but there is no valid page for journal. I want to eliminate that component of the breadcrumb. Then, for the pages that come below that (Home > Publications > Journal > Spring 2014) I want to eliminate the Journal component from there as well.

If there are some relations between Publications, Journal and “Spring 2014” it can be done with Path Breadcrumbs. Even only these specific cases can be solved with PB, and other — with “Breadcrumbs by path”.

(I am silently following this thread, but don't want to hijack it too much)

You are welcome :)

WebWalker3D’s picture

The major drawback of PB which I see as unforgivable (in usability) is the lack of support for jquery_update. Even downgrading the admin interface to 1.5 PB breaks. Having a warning on the project page "Please, disable jQuery Update while working in Path Breadcrumbs UI!" should be an indication to stay away. Let's break the rest of the site while I get breadcrumbs working. Or not....

kalabro’s picture

Hello @WebWalker3D!

Thank you for your feedback. I absolutely agree that it's annoying bug. I hear similar complains almost every time I present PB on local events. PB uses some pieces of Rules JS code and we are keeping an eye on related Rules issue: #1810656: Rules UI does not work with JQuery 1.7+
Occasionally I dive into new stable and dev jQuery Update versions and fix compatibility problems. Any help is welcome here: #2066223: Isn't compatible with jQuery Update
In the next major PB release we will do our best to avoid using sensitive JS code.

For now the most common approach is to downgrade jQuery to 1.7 on admin pages and use Seven / Ember / Adminimal or other stable admin theme.

Best,
Kate