How can I get rules breadcrumbs to work, with out adding "Node content". Only using lots of "Content field" content in the panes.

Comments

avpaderno’s picture

Title: Breadcrumbs When Only Using CCK Fields » Breadcrumbs when only using CCK fields
Category: bug » support

This seems more a support request, than a bug report.

As you cite Rules, why did you open a report for Panels?

mikeytown2’s picture

I can get rules to work, it will display custom breadcrumbs. Panels will only display the custom breadcrumb if I have a "Node content" content added with the no extra's unchecked. Here's my rules issue.
http://drupal.org/node/363818

The problem is I do not want what comes with the no extra's and with the "Node content". All I would like is the custom breadcrumbs

mikeytown2’s picture

avpaderno’s picture

When you open a bug report is because you investigated on the issue you are having, and you found out that the problem is caused by wrong code used in a module.
So far, you didn't pointed out any code that is incorrectly written, and that is present in Panels; the problem could be in any other module, but not in Panels.

Just to make an example, it's like if I would pretend they fix my car without to pay anything (because there is a warranty on the car), and then they discover the problem is that somebody has stolen the engine.

mikeytown2’s picture

You could call it an over-site of breadcrumbs in the Drupal API. There is no official way to do it. Right now if you uncheck the no extra's box then Drupal runs all the code that hooks into _nodeapi(). There are a couple of solutions to the problem IMHO...

Either Panels has to find out all the hooks and present a new interface to selectivity call each hook. Right now it's an all or none approach.
panels_admin_node_content() - node_content.inc

Core implements a breadcrumbs API. Hopefully that happens in 7. Doesn't solve my problem in the next 6 months though.

Make it so all the breadcrumb modules use hook_init(). Not sure how many modules need to be rewriten, and if this is the correct way to go about it.

avpaderno’s picture

Drupal has few functions to set or get the breadcrumbs. It cannot avoid the conflict between different modules trying to set the page breadcrumb in the same moment; it's just the administrator of a Drupal-powered site who can avoid the conflict by installing, and enabling just few modules which handle the breadcrumb of page offered from third party modules.

mikeytown2’s picture

AFAIK these are the important breadcrumb functions
drupal_get_breadcrumb()
drupal_set_breadcrumb()

This is not the conflict. It's how the encapsulating function is hooked/called. I've tried all the above mentioned breadcrumb modules, one at a time. Only the Menu one works with panels because the rest use nodeapi; and when nodeapi gets "activated" via panels it does a bunch of stuff, like display all my CCK fields, that I would rather it not do. If nodeapi is activated via the false on the no-extras checkbox inside panels, then breadcrumbs works; but I get a lot of "crap" in the process. I would like to only use breadcrumbs, I don't need/want the extra stuff that comes with the no-extra checkbox.

Been testing on a fresh install with only the needed modules.

avpaderno’s picture

I mean there isn't a written rule about from which hook drupal_get_breadcrumb(), and drupal_set_breadcrumb() must be called.
Those modules use hook_nodeapi() because they need to change the breadcrumb when an event handled by that hook happens, or because they need to use a value that is passed to that hook.

If I would make a module that changes the breadcrumb to the title of the node being viewed, I would implement hook_nodeapi().

mikeytown2’s picture

If I would make a module that changes the breadcrumb to the title of the node being viewed, I would implement hook_nodeapi().

Your not alone, thats what they all have done, except for the menu one, it uses hook_init(). Anyway I think you understand the problem. Any ideas on how to "fix" it, make it so I can use any one of these Breadcrumb Modules with Panels, with out it displaying all the extra "stuff"?

avpaderno’s picture

I now have a complete vision of the problem you are describing.

I have just another two questions. If you found out that there is a module which works together with Panels, why don't you use that? What do you mean by extra stuff?

mikeytown2’s picture

Oh and the reason why I don't use it is because it requires a menu entry for every node, I have over 200 nodes. I'm sure someone else in the future will have 2,000 nodes. IMHO, fixing breadcrumb support is something that needs to happen if panels is to be one of the big modules that everyone uses.

mikeytown2’s picture

Status: Active » Fixed

Solution Posted On Rules Page
http://drupal.org/node/363818#comment-1241630

Status: Fixed » Closed (fixed)

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