Have the ability, when creating a node, to choose the parent node. This will need to honor the settings in the administration which set the parentage type:
any
one
many
none
The interface, I would think, would be similar to choosing a vocabulary (or multiple vocabularies).
Comments
Comment #1
javanaut commentedI think this is a procedural matter. What you are suggesting is going through this process:
What you can currently do is the following:
Whether you find the parent and create a new child for it or you create a new child and find an existing parent for it seems like a matter of preference. It's easier to use existing drupal facilities to identify a parent, IMO, then selecting them from some list. I only coded it for the "add child" version, assuming this. I'm already wondering what to do with the "Attach existing nodetype" functionality. I'm not really sure how to list out potential children in a useable way. What if there are 2000 potential children/parents that you want to attach? I don't face this with my implementation project, but I could see it getting ugly were it to grow very big.
Comment #2
Aran Deltac commentedThat makese sense. I just didn't want to confuse the end-user who might use the Navigation -> Create Content -> Child Node method. If they go this way then they will create their node and it will be "lost" because it is not associated with a parent. I'll just remove child node creation from the Navigation menu so that people only do it by attaching new child link.
My situation will also not be more than a hundred child nodes per parent (average 10-20), but you are right in worrying over how to present the interface. Somehow a pageinated view would have to be put in to place, but there are obsitcles in that I am sure.
Comment #3
Aran Deltac commentedOh, and I wanted to say that I understand after someone takes the "Navigation -> Create Content -> Child Node" route that they will have the option to assign a parent. I just don't see most people realizeing how this works. It makes a lot more sense to me to show a list of available parents when editing the form.