I have this so far:
I've created an "Event" content type. I also have a "News" content type that has a node reference field for Event, so that I can post separate news stories about an upcoming event.

Here's what I'm trying to get working:
When you click on an Event and go to it's node, I'd like a view to show up, listing all of the 'News' items that have referenced that particular node.

So in a way, its like a reverse node reference. The view needs to be able to tell what node it is on to pull the correct news stories that reference that event. I think I understand the basic structure of what needs to happen, I'm just not sure if its even possible or where to begin.

Any ideas?

Comments

criznach’s picture

I'd start with "views attach". It allows you to create a views display that's attached to certain node type(s). You can then add a Node ID argument who's default is pulled from the current URL.

KGracey’s picture

Awesome. I think thats the missing piece! I'll give it a shot and see how it works.

Thank you!

criznach’s picture

It will be helpful to use the preview feature in views because you can specify a node id and see the preview without leaving the edit view page.

badrun’s picture

You need Views to create the news listing.

To make the news listing shows in your event node, there are 3 ways:
1. Use views attach.
2. Use EVA (Entity Views Attachment) module (http://drupal.org/project/eva)
3. Make the news listing into block and shows it on the event node.

There are some helpful video tutorials for this matter.
Drupal 6 -> http://mustardseedmedia.com/podcast/episode37
Drupal 7 -> http://www.torontowebsitedeveloper.com/drupal-video-tutorials/drupal-7-n...

nevets’s picture

You could also add a Node Referrer field to the Event content type. It provides a back reference and can display the related content when viewing a node.

KGracey’s picture

Hey guys, thanks for the responses. Criznach's response in the first comment was EXACTLY what I was looking for!

For anyone looking to do this, I used the video tutorial badrun posted to explain the arguments I needed and the basic structure:
http://mustardseedmedia.com/podcast/episode37

Thanks again!

criznach’s picture

Glad I could help. I got this technique from the lullabot image gallery tutorial. It does something similar.