Assume I have 2 content types:

1. Artist
2. Song

When you create a song, there is a node reference field which allows that song to reference an artist. (I think this is different from the method used on http://drupal.org/node/289738 because it looks like that drupaler references multiple songs from the artist content type, i.e. the node reference is going in the opposite direction). (I also think that this issue doesn't apply to this exact scenario: http://drupal.org/node/505574)

Here's what I want to do:

-If you're viewing a song's page, display some basic information about the artist that the song is node referencing. (I was able to do this using the steps listed on the above-mentioned http://drupal.org/node/289738, which I'm guessing was so easy because the node reference field actually exists on the song content type).
-If you're viewing an artist's page, display a list of all the songs that node reference that artist. (This is what I was unable to do so far).

What do I have to do to achieve this second functionality? Do I have to install some sort of module that adds a 2-way node reference (i.e. when a song node-references an artist, it also forces the artist to node-reference the song)?

Comments

Chris Einkauf’s picture

(Here's some more advanced functionality, which I'm including in this comment so as not to clutter up the original post...)

Also, if anyone's willing to tackle an additional set of questions, how would I add the following further functionality...
-If someone's viewing (or editing/creating) a song's page, allow the person to A) edit, or B) create the associated artist on-the-fly. (Is Popups: Add and Reference module the best bet for this, or can I accomplish this with Views 2 to make my life easier?)
-If someone's viewing (or editing/creating) an artist, allow the person to A) edit, or B) create an associated song by that artist (similar to the function above).

Chris Einkauf’s picture

Anyone have any ideas? Is the Node Referrer module somehow the solution to my problem?

WorldFallz’s picture

My brain always goes into a seizure whenever I try to help with nodereference questions, but if I understand correctly, yes, nodereferrer can help you.

You put it on the referenced node to get a read only list of all the nodes that refer to it. So, if content type A has a nodereference field to content type B, you would add a nodereferrer field to content type B to get a list of all the content type A nodes that have that node selected in the nodereference field.

Simply put, nodereferrer is the other 1/2 of nodereference. I've not tried the popup module yet, but some other modules I found useful for this type of stuff you might want to look at are: views_attach, nodereference_url, noderefcreate, nodereference_views, & nodereference_formatters.

wrb123’s picture

please see http://drupal.org/node/518614 for a solution to this