When I use the Parent Node ID relationship in Views, I get exactly the same result as if I used no relationship. This goes for both arguments and fields. The Child Node ID relationship works as expected: If I include Node:Title (no relationship) and Node:Title (w/Child Node ID relationship) in my fields, I see the title of the selected node, as well as the title of its child(ren). But if I include Node:Title (no relationship) and Node:Title (w/Parent Node ID relationship) among my fields, the two fields both display the title of the selected node; the title of the parent node does not show up. Similarly, when I use the Parent Node ID relationship in an argument, I wind up getting the exact same nodes as if I used no relationship in the argument. The ability to include secondary node relationships in fields and arguments is one of the biggest new features of Views 2 for me, so it is frustrating that I can't use the Parent relationships as expected.
Comments
Comment #1
victoria_b commentedThis just happened to myself as well.
Build my view (including Village internet's patch http://drupal.org/node/494066) yet if add the "Parent Node ID" in an argument all nodes are returned just as above.
Any advice on this as I have an urgent deadline to hit!!
Thank you in advance.
Comment #2
oda commentedI could not reproduce the error. Can you give more detailed instructions?
This is what I did:
1. create a new view (node)
2. add the Node Relativity: Parent Node ID relationship, labeled it "Parent"
3. set style to table
4. add several fields including "Node: Title" and parent title "(Parent) Node: Title"
5. add a page display and give some path
When accessing the view path I saw a list of children with their parent's title.