Hi to the developers of this really great module,
i wanted to ask, if there is any chance for a drupal7-version in the medium- or long-dated future?
This would be very exciting for me, because i would need for a new project, which will get a drupal7-port in the future.

Comments

oda’s picture

I have several projects using node relativity so I'm also interested in the future of this module.

I don know D7 yet, but since node relativity core is very simple and some how isolated (it's basically a table that maps parents and children) I dont see any problems in porting it. Maybe there will be better alternatives. If some one knows anything, please share with us.

In any case, if the maintainers could not give a upgrade path or a full D7 version, I will work on this, but right now I cannot "pledge that NR will have a full Drupal 7 release on the day that Drupal 7 is released".

chawl’s picture

subs

drupa11y’s picture

Any news for the D7-version?

no2e’s picture

Any info on that one?

drupa11y’s picture

I would be more than glad to have a D7 version, cause this is really a main feature I am really missing.

Seraphin42’s picture

Subscribe

doublejosh’s picture

I'm curious about this because of the various options for this functionality and how it *should* be done in Drupal 7 with the new fields system.

Here's a comparison... http://groups.drupal.org/node/23899

perhenrik’s picture

Subscribe

iRex’s picture

subscribing

doublejosh’s picture

From what I understand, with entities, this is the new answer: http://drupal.org/project/relation
And even the relation is a field-able entity!

meyerrob’s picture

Issue summary: View changes

Now as the end of D6 and therefore the end of the node relativiy module is near:

Has anybody found a good solution for replacing this module with another one? Or to be more precise:

A replacement with a viable migration path?

ericg’s picture

here's how I sorted this out for a project:

after an upgrade to drupal 7, I made a new entity reference field in the content types I used to use for relativity (the parent node types) called child_related_nodes
I then created the following script, put it in a directory within the site so that I could use drush to run it

so, for example the script was called convert-relativity-to-ent-reference.php

I used the command

drush php-script convert-relativity-to-ent-reference.php

and it read the data from the existing relativity table (left over from drupal 6 after the upgrade) and created entity references

I also created a viewfield that shows the referenced nodes so I could keep a similar style to how relativity displayed children.

<?php

$query = db_select('relativity', 'r');
$query->fields('r', array('nid', 'parent_nid'));
$result = $query->execute();

$nodes=$result->fetchAll();
foreach($nodes as $item) {

print "node to load is ". $item->parent_nid."\n";
print "child node is ". $item->nid."\n";
$node_to_work_on = node_load($item->parent_nid);
print "node title is ". $node_to_work_on->title."\n";
$node_to_work_on->field_child_related_nodes['und'][]['target_id'] = $item->nid;
$done = node_save($node_to_work_on);
}

meyerrob’s picture

Thanks for this solution, we´ll give it a try :-)