I'm trying to display a view as a cck computed field.
I've this code :
if (!$node->nid) node_save($node);
$view = views_get_view('participant');
$node_field[0]['value'] = views_build_view('page', $view, array(0 => $node->nid), false, false);
and then $display = $node_field_item['value'];
but nothing is displayed... Am I doing something wrong ?
the view called as http://example.com/participant/11 works perfectly...
Comments
Comment #1
munga commentedThis is the solution... It seems the problem was in the views_get_view the accepts the view id, but not the view name...