put views block in a content type different than the one in views block I have 2 content types. One called "tributes" and another called "offers".
Both content types have a field reference to pages of a third content type called "county".

What i want is to display a view block with content from "offers" in the pages of content type "tribute" based on the value of the field county that appears in the node each time.

Is there a way to create a contextual filter on field county and use as default value the value of the field county appearing in the "tribute" node?? (through PHP perhaps?!)

Thanks in advance!
Getting a block view to get a parameter from the node view can be tricky.  Here's what you can do:

For "tribute nodes":


create a new view to display "offer" nodes
add a filter to that view to limit the content type to "offer"
add an argument to that view to your node reference
Under "Action to take if argument is not present" select "Provide default argument"
For default argument type, select PHP Code
We now need to write some php code to grab the node reference id from the node being viewed.  your case might be a bit different, but here's a starting point: (you dont need php tags)

&lt;?php

if(arg(0) == "node" &amp;&amp; is_numeric( arg(1) )) {
  $node = node_load(arg(1));
  if($node-&gt;type == 'tribute') {
    return $node-&gt;field_county[0]['nid'];
  }
}



replacing field_county with whatever your cck field is named.

Then you should be able to add that block to any tribute node page and it will pull in the associated offers, and just do the same thing again for the offers->tribute direction.