Associate child node with revision?
tessmonsta - September 5, 2008 - 15:00
I'm trying to build a small hierarchy of nodes within my drupal installation. Currently I'm using the Node Relativity module to fulfill that goal. My problem is that I want to associate child nodes only with a single parent node revision.
For example, I have a parent node that has zero or more child nodes. When I post a new revision to the parent node, I want a new list of children. Likewise, if I am viewing an older revision, I want to only see the child nodes submitted for that revision.
Is there anything like this?

As far as I know, node
As far as I know, node revisions can't have their own (different) children. They are just not meant to do that, by design.
Unless someone has come up with a workaround, I think your will need to create your own kind of emulated "revisions" using full nodes instead of Drupal's node revisions, perhaps with the help of a node cloning module such as
http://drupal.org/project/node_clone or
http://drupal.org/project/node_template or
http://drupal.org/project/skeleton
That is something I've
That is something I've considered. The problem is that it means I'd lose out on features that extend the module functionality (Diff). Relativity allows you to use views for child display, and I was hoping to do something to create the illusion of this association. If the child node was created earlier than the parent's latest update, for example.
If I were to go with simulating versions with new nodes, I'm not sure how to enforce the workflow. The parent node should have the same title for each revision, but the body field of each revision is different. If those revisions where separate nodes, The parent would have an extra field, body, which is required in CCK. Node display also becomes a mess.
If only revisions were exposed in views...
If only revisions were
merlin must have heard you-- they are in views2 ;-)
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
*looks at module page* Damn,
*looks at module page*
Damn, only for Drupal 6. Right now I'm stuck at 5 due to multiple dependencies, will there be a 5.x version soon?
As views 2 is a SIGNIFICANT
As views 2 is a SIGNIFICANT rewrite of the module (as opposed to just an upgrade for d6), i don't believe there are any plans to backport it (you'd probably have upgraded by the time it was done anyway). Remember-- "the drop is always moving" ;-)
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz