I know this has been talked about a few times but I am still not getting it. Here is situation:

I have two node types: Artist and Song
The node type song has a node reference which will point to an artist

On my view I have the Relationship set up between the song and artist
for the argument I selected my node reference field (don't know if that is correct)
and for the field I just have the node title selected (and I dont know if I should select 'do not use a relationship ')

Any corrections or tutorials or anything really would be greatly appreciated.

Comments

alexkb’s picture

Hi Andy,

In the argument section you might actually have to select the node nid. This is discussed here:
http://drupal.org/node/289738

- Alex

andyboutte’s picture

Thanks for the reply. After all my searching I did not see that page. I started over fresh and followed that tutorial and could not get the results I was supposed to be getting. The results I was getting on the tutorial was list of all the songs, instead of just the songs by each artist. This makes me think that the argument is not working?

alexkb’s picture

Is it a block that you created for the song list?

If so, the url argument doesn't get passed to the block automatically as you would expect it. To fix this:

1. Edit the 'Node: nid' argument you created in the view.

2. Select 'action to take if argument is not present' as 'provide default argument".

3. Then select 'default argument type' as "Node IF from URL".

Then hit 'Update' and then save, and take another look :)

andyboutte’s picture

I read somewhere else that arguments did not work on blocks so I thought I would be smart and I created a panel view of the node references and apparently that does not work.

What you suggested worked. Thank you.

andyboutte’s picture

Ive gotten everything to work so that on any Artist page it will display all the songs. Now I am trying to make it so that on the Song page it will display the Artist. Is this possible or am I going to have to create another node reference?

andyboutte’s picture

any body know the answer to this?