Closed (fixed)
Project:
Panels
Version:
6.x-2.x-dev
Component:
Panel pages
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2009 at 09:23 UTC
Updated:
20 Feb 2009 at 09:30 UTC
How can I get rules breadcrumbs to work, with out adding "Node content". Only using lots of "Content field" content in the panes.
Comments
Comment #1
avpadernoThis seems more a support request, than a bug report.
As you cite Rules, why did you open a report for Panels?
Comment #2
mikeytown2 commentedI 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
Comment #3
mikeytown2 commentedThe reason why I listed it as a bug, is that only the Menu Breadcrumbs Module works with panels. Every other one doesn't.
Fails: hook_nodeapi()
http://drupal.org/project/custom_breadcrumbs
http://drupal.org/project/taxonomy_breadcrumb
http://drupal.org/project/node_breadcrumb
http://drupal.org/project/rules
Works: hook_init()
http://drupal.org/project/menu_breadcrumb
Comment #4
avpadernoWhen 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.
Comment #5
mikeytown2 commentedYou 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.
Comment #6
avpadernoDrupal 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.
Comment #7
mikeytown2 commentedAFAIK 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.
Comment #8
avpadernoI mean there isn't a written rule about from which hook
drupal_get_breadcrumb(), anddrupal_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().Comment #9
mikeytown2 commentedYour 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"?
Comment #10
avpadernoI 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?
Comment #11
mikeytown2 commentedBreadcrumbs
http://img204.imageshack.us/my.php?image=extraswithbczh0.jpg
No Breadcrumbs
http://img149.imageshack.us/my.php?image=nobcli5.jpg
Comment #12
mikeytown2 commentedOh 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.
Comment #13
mikeytown2 commentedSolution Posted On Rules Page
http://drupal.org/node/363818#comment-1241630