Been trying to upgrade to NH 6.x-2.1 and coming across a complete deal breaker. In the nodehierarchy table all the parent/child relationships are correct to create this path
academics/departments/communication-sciences-disorders/department-news/newsletter-archive
However when editing individual nodes in this hierarchy, the Parent Node Drop-down menu is completely screwed up. The drop-down does not reflect the full site hierarchy [e.g, some nodes are put at the root level] and the drop-down changes between nodes. This makes it virtually impossible for end-users to reassign parents.
I've attached 2 images to illustrate the behavior as relates to the path above. When editing the department news page, the hierarchy shows it correctly placed under its parent but does not show the child page Newsletter Archive. When editing the newsletter archive page it correctly identifies department news as its parent but department news is now at the root level.
| Comment | File | Size | Author |
|---|---|---|---|
| nh2.jpg | 104 KB | emersonweb | |
| nh1.jpg | 119.21 KB | emersonweb |
Comments
Comment #1
jbylsma commentedSounds like something is messed up with the menus. First things first, have you cleared the menu cache? I doubt that would be causing it, but it couldn't hurt.
Can you post the relevant menu_links and nodehierarchy_menu_links rows from the db? What are your settings for Node Hierarchy, mainly "Show item in menu" and "multiple parents?" Lastly, is parent content type appropriately set up as an "Allowed child node" type? I think I encountered problems once where that got turned off for some reason.
Comment #2
emersonweb commentedThe content types are set up correctly as far as Children nodes go. They did NOT have the menu creation option set correctly (optional default to yes). On the "news" page I opened it up and NH had 'show in menu' off. Setting it to on (as it should have been), gave me 2 menu items for the same thing . I did flush the menu cache.
Menu Links - department page
'primary-links', '2970', '948', 'node/676', 'node/%', 'Department News', 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:15:"Department News";}}', 'menu', '0', '0', '1', '0', '7', '4', '1', '913', '2482', '948', '2970', '0', '0', '0', '0', '0', '0', '0'
'primary-links', '13797', '948', 'node/676', 'node/%', 'Department News', 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:0:"";}}', 'nodehierarchy', '0', '0', '1', '0', '0', '4', '0', '913', '2482', '948', '13797', '0', '0', '0', '0', '0', '0', '0'
Menu Links - archive page
'primary-links', '10906', '2970', 'node/6384', 'node/%', 'Newsletter Archive', 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:18:"Newsletter Archive";}}', 'menu', '0', '0', '0', '0', '5', '5', '0', '913', '2482', '948', '2970', '10906', '0', '0', '0', '0', '0', '0'
'primary-links', '15984', '13797', 'node/6384', 'node/%', 'Newsletter Archive', 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:0:"";}}', 'nodehierarchy', '0', '0', '0', '0', '0', '5', '0', '913', '2482', '948', '13797', '15984', '0', '0', '0', '0', '0', '0'
NH Menu Links (for both)
'18532', '676'
'13797', '676'
'20569', '6384'
'15984', '6384'
Comment #3
jbylsma commentedCan you try removing the menu item created through the menu settings (The "Delete this menu item" checkbox) and checking out the NodeHierarchy parent selects?
Comment #4
emersonweb commentedSame result.
Is the issue here that I have a full menu created by the menu module that is active and another menu created by the nh module that is hidden?
Comment #5
jbylsma commentedQuite possibly. As a test, perhaps try clearing out all of the menu module items and recreate a small selection to see if that fixes it. If that's the case, you might be able to get away with some db queries to convert the menu module items to node hierarchy. We can cross that bridge when we get to it.
By the way, if this is for emerson.edu (which I'm guessing it is), that's a nice looking site!
Comment #6
emersonweb commentedStill no go. The archive page still shows its parent at the root level in the Parent selector. The nav on the site, though is displaying correctly. The side-effect of this of course is that anything that was duplicated between menu/nh is now hidden. :).
You guess correctly - thanks! I inherited the site from a design firm and they made some unfortunate choices that I am trying to get us out from under -- significant customization of the core menu & a minor tweak to nh 1.4 among them.
Comment #7
garretg commentedEmerson, can you post an update on this? Did you figure something out?
I think I'm seeing the same thing...
-Garret