Closed (fixed)
Project:
Node Relationships
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2009 at 11:51 UTC
Updated:
13 Mar 2010 at 07:10 UTC
I think the relationship module is really promising for a lot of uses.
If I define a field "related" - would it be possible to easily get a view showing all related nodes including transitive relations over same field?
E.g.
A is related to B
B is related to C
Thus A is transitively related to C (via B) - and this I would like to see somehow.
(I am hoping it is an existing feature and I just need to know how to use it)
Thank you!
Comments
Comment #1
markus_petrux commentedIn the view used to render nodes of type B in nodes of type A (this matches the Back reference views feature in Node Relationships module), you should be able to include a Views relationship based on the node reference field in type B that is used to reference nodes of type C, then you can display any other field of type C in that view.
In may generate duplicates, however, depending on the cardinality of the relationship between nodes of type B and C. If that happens, and you want to display information about all nodes of type C per one node of type B, then you may need to use something like Views Custom Field module.
Comment #3
_snake_ commentedHi
I have a similar problem
Eg
A is related to B (1-N)
(B doesn't exists without A)
C is related to B OR is related to A OR is not related
B-C(0,1-N)
A-C(0,1-N)
I have 2 noderenferences(B,A) in C form. when I fill B reference I want to fill the A nodereference automatically. Is it possible with Node Relationships? I need this to view what is B's parent from the C view, and from the otherside too, which are the B's childs from the A view.
Thanks
Comment #4
markus_petrux commentedRe: "I have 2 noderenferences(B,A) in C form. when I fill B reference I want to fill the A nodereference automatically. Is it possible with Node Relationships?"
Nope. I guess you need some kind of additional custom code for something like that.
PS: Please, do not re-open issues unless you're 100% it is related. Even then, it might be better to open a new one with a link to the old, and proper descriptions, etc.