Active
Project:
Node Relativity
Version:
master
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
15 Jun 2010 at 16:57 UTC
Updated:
1 Oct 2015 at 12:42 UTC
Jump to comment: Most recent
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
Comment #1
oda commentedI 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".
Comment #2
chawl commentedsubs
Comment #3
drupa11y commentedAny news for the D7-version?
Comment #4
no2e commentedAny info on that one?
Comment #5
drupa11y commentedI would be more than glad to have a D7 version, cause this is really a main feature I am really missing.
Comment #6
Seraphin42 commentedSubscribe
Comment #7
doublejosh commentedI'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
Comment #8
perhenrik commentedSubscribe
Comment #9
iRex commentedsubscribing
Comment #10
doublejosh commentedFrom what I understand, with entities, this is the new answer: http://drupal.org/project/relation
And even the relation is a field-able entity!
Comment #11
meyerrob commentedNow 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?
Comment #12
ericg commentedhere'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);
}
Comment #13
meyerrob commentedThanks for this solution, we´ll give it a try :-)