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

dgorton’s picture

Status: Active » Needs review

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

jbylsma’s picture

Component: Code » Drupal/PHP Code
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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