On a clean site I had to import hundreds of nodes and relate them to other nodes. Node Import did not offer this relationship import that I could see.
This drupal 5 module will find all children and relate them to parents.
It worked by giving both parent and child a cck field they both shared.
In this case a column in a spread sheet.
Then this matches on this field.
You need to hard set the sql in the module code the the cck field you are using.
But after that it gives you a link in the navigation menu to
1. see stranded children
2. attach children to parents in one click

bzr branch http://projects.rivervalleytechcollective.org/bzr_d5/autorelate

Hope it comes in handy for someone else

Comments

jonhattan’s picture

that subdomain is not available. Has it moved to other place? I'm trying to figure out a way to import/export nodes including relativity relationships (for 6.x of course) and your code could be a starting point.

yurtboy’s picture

Sorry about that. I can get it to you just email me but I would suggest the migrate module or just node import since it can import relations now.