Closed (fixed)
Project:
Node Hierarchy
Version:
6.x-2.x-dev
Component:
Drupal/PHP Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2009 at 00:52 UTC
Updated:
13 May 2012 at 02:31 UTC
I have a parent node with several children. There is an image that the content editor adds to the parent node, and I have it displaying via a view block in the sidebar of the parent node. I want the image to also appear on each of the child nodes. I tried creating a view using the parent node ID as an argument, but couldn't get it to work. It seems to me that the ability of child nodes to "inherit" certain elements of the parent node would be helpful, even if it's just to the extent of having similar displays like I'm trying to do.
Any suggestions?
Comments
Comment #1
dgorton commentedThis should be possible by creating a View. Add a View Relationship to the Node Hierarchy parent - choose fields from the parent and pass the View and Argument of the Parent Node ID. That should get you precisely something like this.
Alternatively, if you have good theming chops, you could do something in your node preprocess function to load the parent node, grab whatever you need from it and add it into the child node.
Comment #2
jbylsma commented