Needs work
Project:
Node Hierarchy
Version:
6.x-2.1
Component:
Drupal/PHP Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2008 at 19:26 UTC
Updated:
6 Sep 2015 at 19:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bengtan commentedHi,
I think you're running into a Drupal 6 behaviour which is addressed by menu_breadcrumb. Have a look at that module, give it a try and see if it solves your problem.
Comment #2
bengtan commentedAssumed to be fixed since I haven't heard anything further.
Comment #3
scottrigbyHello...
Menu Breadcrumbs doesn't work when Node Hierarchy is enabled.
(I'm moving this issue from Submenu Tree, because I ruled out that module's involvement).
I had a new D6.3 (later D6.4) installation, running Submenu Tree & Menu Breadcrumbs too, but the breadcrumbs didn't reflect the menu hierarchy when on those pages.
At first I thought maybe it was the Zen theme's Breadcrumb function maybe getting in the way - but even in Garland, this was still an issue.
I then tried to rule out any other module that might be conflicting.
* I removed Submenu Tree, and guess what? The issue was still there.
* I removed Menu Breadcrumbs, and (of course) that didn't fix my problem because what I wanted was non-default behavoir - making breadcrumbs reflect primary links menu hierarchy.
* Then I disabled the Node Hierarchy module, and the issue went away!
But is this an issue in Node Hierarchy, or Menu Breadcrumbs? For now moving to Node Hierarchy, though maybe the issue lies with Menu Breadcrumbs instead (if so please let me know?).
Thanks! It seems not many people have run into this problem yet, but ideally these 2 mods would play nice togehter
:) Scott
Comment #4
scottrigbywhoops - meant to set this to 'active' ;)
Comment #5
adraskoy commentedI just tried node hierarchy (6.x-1.2) for the first time, on a vanilla install of drupal 6.9, and ran into the same problem. I set up some content under the primary links, and set that as the default menu for node hierarchy. It is all working well, except that all the breadcrumbs only have "Home". I added menu_breadcrumb and turned on everything in its configuration. No change in breadcrumb behaviour for nodes created via node hierarchy before or after that change.
I also tried turning off pathauto and menu_block, and I tried setting the parent menu to Navigation rather than primary links. Neither worked. No matter what I do, I can't get breadcrumbs under node hierarchy.
Extra modules enabled:
menu_block menu_breadcrumb nodehierarchy pathauto token
Comment #6
adraskoy commentedOn further examination, I see that it is creating a breadcrumb, but incorrectly. The breadcrumb does not include the current level, only the parents. This is true even if menu_breadcrumb is enabled and "Append page title to breadcrumb" is selected.
If I turn off the node_hierachy module and look at the nodes that it had created, then the breadcrumbs look fine. So the problem would seem to be in this module.
Comment #7
ronan commentedNode hierarchy manipulates the breadcrumbs so that they reflect the current hierarchy (in case it is different from the menu structure). I don't use menu_breadcrumb, but I assume that if both modules are trying to set the breadcrumb, somebody's going to lose. Do you guys think an appropriate solution would be for me to leave the breadcrumbs as is if menu_breadcrumb is installed?
Thanks
Ronan
Comment #8
brisath commentedSubscribing
Comment #9
asb commentedSubscribing
Comment #10
joln commentedSubscribing
Comment #11
bergie3000 commentedsubscribing
Comment #12
sgtpep commentedSuggesting patch.
Comment #13
djac commentedPatch #12 fixes the issue for me.
Anyone else care to review/test?
Comment #14
djac commentedI spoke too soon. The patch breaks expanding the 'Node Hierarchy' section on the node/edit page.
Comment #15
bkosborneSubscribing
Comment #16
radu.cocian commentedI had the same problem. I like node hierarchy but I really need the breadcrumbs.
What I did to fix the problem:
- installed Menu Breadcrumb 6.x.1.3
- commented line 1373 from nodehierarchy.module ( drupal_set_breadcrumb($breadcrumb); )
Comment #17
jordotech commentedThis fixed it for me as well.
Comment #18
estepix commentedPatch #12 does not work properly since it is looking for two variables which do not exist: nh_parent_node-type and nh_child_node-type
if (!variable_get('nh_parent_' . $node->type, 0) && !variable_get('nh_child_' . $node->type, 0)) return;
Instead we should be checking the following variable: nh_allowchild_node-type:
variable_get('nh_allowchild_' . $node->type, 0);
The attached patch works fine for me.