I\'ve somewhat ran in to a problem with Drupal today.
I would like to display a node (Product) on a page, and below that node, I\'d like to display 3 similar nodes (Pro
You can have multiple terms when you change to
$node = node_load(arg(1));
if ($node) {
$ret = array();
foreach ($node->taxonomy as $term) {
$ret[] = $term->tid;
}
return implode('+', $ret);
}
return '';
The '+' in implode is OR. If you want AND, than use ',' instead
Take a look at the RelatedContent module. Links to the module and a couple of tutorials below:
You say you're having trouble with the display. In that casea, make the view from the above instructions a block, and have it display in a region that's below the node content, though that assumes there's a region in your theme directly below your content.
Override your node view with panels. And create a view block with 'taxonomy id argument', you need to choose default argument options as PHP Code and place this code.
$node = node_load(arg(1));
if($node) {
foreach($node->taxonomy as $term) {
$term = $term->tid;
return $term;
}
}
I just launched a site using panels + views magic. http://sgigulf.org/culture/synopsis-of-performers-showcased-by-sgi-gulf