Hi, I'm trying to create a view where a child node's data is presented on the parent node view, but when I try to set up a relationship, only Node Relativity: Parent ID is available.

So I have the node "Bands", which I've set up with a child node "Band Members" (this contains a node relationship field with the artist node and the years and roles that artist had in the band).

So correct me if I'm wrong, but in order for me to set this up so the band members information is displayed on the band view, I would need to create a Node Relativity: Child ID (which is not available to me), and then add a Node: Nid Argument.

Am I missing something? Reading through the other posts it looks like I should have a Node Relativity Child ID in the Relationships options. Is this not true? This is my first time working with the Node Relativity module, so please forgive the newbiness of my questions. Thanks

Comments

stevegmag’s picture

I'm looking for this too. Apparently there is a patch mentioned here http://drupal.org/node/494066, but I'm not getting the child bits in the view.

vectorfrog’s picture

I saw that too and wasn't able to get a Node Relativity: Child Node ID to appear in the Relationship options either.

I also tried to embed a view I created of the children into a contemplate of the parent content type, which worked, but for some reason you lose the ability to create children links once you do this.

It's depressing when you spend all day trying to fix this one problem, and now that the day is over you realize you are no closer to the solution than when you started. :(

ptitb’s picture

StatusFileSize
new75.84 KB

By overwriting relativity.views.inc using the code in #494066: Are Views Arguments Supported in Node Relativity 6.x? comment #1 and clearing the cache I had the options in the relationships.
After that I was able to get the childrens titles, nid's, etc.

It looks like this relationship is essential for pulling data from the children into views with a parent nid as argument.
It would be really nice if this could be implemented in the next version of Node Relativity, because the module is very usefull!

Attached is an image of my setup in views, maybe this helps others.