This can be done using views relationships. When you create the view, you need to add a relationship on the nodereference field. Then add an argument for NID. Configure this argument such that it uses the relationship you created and that "Provide default argument" is selected with the option "Node ID from URL." Add a block display for this view.<br>
<br>Here's a screenshot of an example: <a href="http://imagebin.ca/view/dxUmsy2K.html">http://imagebin.ca/view/dxUmsy2K.html</a><br><br>In the example, "Page" nodes can reference "Story" nodes. I want the view to show "Page" nodes when I am viewing a respective "Story." In the case of your initial example, "Page" is my content type B and "Story" is my content type A. <br>
<br>I created a relationship on the nodereference called "Stories." I added a NID argument that uses the "Stories" relationship and provides a default argument that is the NID from the URL. I added a block display and put it in the region of choice. <br>
<br>The narrative of this view configuration is: "find nodes which have the given NID argument value in their nodereference field."<br><div class="gmail_quote"><br>Fri, Nov 5, 2010 at 8:43 AM, <a href="mailto:ceooph%2Bdrupallist@gmail.com">ceooph+drupallist@gmail.com</a> <span dir="ltr"><<a href="mailto:ceooph%2Bdrupallist@gmail.com">ceooph+drupallist@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi list,<br>
<br>
I use CCK noderelation to link 2 different contents types.<br>
I have content type A.<br>
I have content type B with a nodereference to a content type A node.<br>
<br>
When I visit content type A I want to have a block with content type B<br>
nodes in relation with this content type A node.<br>
<br>
What sort of relation and arguments I must use in my view. I find many<br>
exemples to have the reverse (when I'm on type B, list all type A) but<br>
it's not that I want.<br>
<br>
Thanks in advance for your help.<br>
<font color="#888888"><br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br>