📖 Documentation
Displaying Entries in a block with same term as page
Great entry that works:
http://drupal.org/node/70145#comment-1318538
displaying only nodes in a block view with the same term as page
arbel - March 5, 2009 - 00:43
here's something that might help out someone, for views 1 with drupal 5
argument code for displaying only nodes in a block view with the same taxonomy term as page
if ($view->build_type == 'block' && arg(0) == 'node' && is_numeric(arg(1))) {
$node=node_load(arg(1));
$term = taxonomy_node_get_terms_by_vocabulary($node->nid, 1); //change the 1 for the vocab id
$args[0] = key($term);
}
return $args;
Used here in the view "Search_Images_country" to display on place pages, a block of images of JK's from the same country.

