0

I'm trying to create a Block View to display a second node's Body based dynamically on the node currently being displayed.

Example: node/1 is currently being displayed, and the block in the sidebar loads the body (Contact information for example) of a secondary node, say node/12. But if node/2 is being displayed, the block will instead load the Body of an entirely different node.

Can I create an integer field in the Content Type that identifies the secondary, "Contact Block", node to display, and how would I create the View to use this field? Or do I need to create a relationship, and if so, which Content Type needs the relationship, the primary node, or the secondary node?

0

EntityReference was what I was looking for and I found a good walkthrough here: http://www.wunderkraut.com/blog/overview-of-entity-reference/2011-10-11

| improve this answer | |
  • did you need to use a php filter? – SDMulroy Jul 2 '14 at 19:33
  • Shouldnt need php filer, should be able to filter on content type nid in contextual filters. – chadpeppers Jul 2 '14 at 19:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.