Hi,
The following code that I found is for displaying TEASERS of reviews :
if (user_access('read reviews')) { // check if user have access
if (arg(0) == 'node' && is_numeric(arg(1))) { // check current page path
$nid = arg(1);
$node = node_load($nid);
$type = $node->type;
if (variable_get('nodereview_use_' . $type, 0) && db_result(db_query("SELECT COUNT(*) FROM {nodereview_axes} WHERE node_type='%s'", $type))) {
$view = views_get_view('review_list');
$view_args = array($nid);
$pager = TRUE;
$limit = 10;
print views_build_view('embed', $view, $view_args, $pager, $limit);
}
}
}
But how do you manage to display the whole content of reviews after the node (on the same page)?
the default view that comes with NodeReview module seems to only list review teasers.... I tried editing it and telling it to list the whole body of a review but it doesn't work :-(
Basically I want to display my node, then AFTER it I want to list all reviews for that node (the whole contents of reviews, not just teasers).
Any thoughts on this one?
Thanks in advance,
k.
Comments
Comment #1
Crell commentedFor Drupal 5, use the component module to suck in a view that is set to "full nodes", much the same as the code you have above. Whenever this module gets upgraded to D6, the views_attach module would be a much better way to go.