By grn on
Hi.
I am looking for a neat solution for the folowing problem
I have pages. These pages have a node-reference-CCK-field. The reference is to one or more stories. Every refered story should show up in a block.
Well it's a view with a nice argument setting.
I recon that every page should refer to it's "children". Every child should show up in the view.
I thought I could solve it by using code similar to:
View argument at "Provide default argument":
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
return $node->field_field_story_ref[0]['nid'];
} else {
return FALSE;
}
I am stuck somehow. Any hints?
Thanks!
Comments
The solution
Use this guide: http://drupal.org/node/289738
I use an argument that returns the node ID from the URL.
GrN.dk