Closed (fixed)
Project:
Node Hierarchy
Version:
6.x-2.x-dev
Component:
Drupal/PHP Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2010 at 21:01 UTC
Updated:
9 Mar 2017 at 11:47 UTC
Jump to comment: Most recent
Comments
Comment #1
spacegoat1701 commentedActually, I figured it out: I needed to enable the experimental parent select widget.
Comment #2
Melissamcewen commentedSpaceGoat1701, do you know what page that is enabled on?
Comment #3
namklabs commentedMelissamcewen,
I'm using Drupal 7 (not D6 as this issue specifies), but I would guess that you enable the Parent Select Widget on the Modules page. That's where it's listed for me.
Comment #4
r0bm1lls commentedAh... I have tried using multiple parents in 7. When I enable the alternative widgets all I get is an auto complete field for parents and don't seem to be able to select or specify more than one parent. Do you have this multiple parent ting working on your D7 install Namklabs?
Comment #5
DaPooch commentedSo does anyone have multiple parents working in the 6.x-2.1 branch? I can't seem to get it to work. I assume you comma separate in the autofill widget but that doesn't seem to do it.
Comment #6
guntervs commentedIf you go to the configuration page you can select "Allow multiple parents" for the node types that can have multiple parents.
Comment #7
suryabhan barai commentedHi guntrvs,
you need to make 2 replacement of code in nodehierarchy module's nodehierarchy.module file,
1st replacement at line no:- 615
from:- $form_state['nodehierarchy_expanded'] = TRUE;
to:- $form_state['rebuild'] = TRUE;
2nd replacement at line no:- 787
from:- if (isset($node->nodehierarchy_menu_links[$i]['remove'])) {
to:- if (isset($node->nodehierarchy_menu_links[$i]['remove']) && $node->nodehierarchy_menu_links[$i]['remove']) {
once done it would start working.
Comment #8
suryabhan barai commentedComment #9
suryabhan barai commentedReplace line number 576
< $form_state['nodehierarchy_expanded'] = TRUE;
with
> $form_state['rebuild'] = TRUE;
Replace line number 748
< if (isset($node->nodehierarchy_menu_links[$i]['remove'])) {
//---with
> if (isset($node->nodehierarchy_menu_links[$i]['remove']) && $node->nodehierarchy_menu_links[$i]['remove']) {