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

markus_petrux’s picture

Category: feature » support
Status: Active » Fixed

In 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

_snake_’s picture

Version: 6.x-1.2 » 6.x-1.5
Status: Closed (fixed) » Active

Hi

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

markus_petrux’s picture

Status: Active » Closed (fixed)

Re: "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.