Community Documentation

Multiple Views on single node (or single view)

Last updated May 16, 2006. Created by bermin on May 16, 2006.
Log in to edit this page.

Taken from http://drupal.org/node/42599

Thought it really needed to be here as well.

<?php
 
// load a second copy of the view -- unfortunate but we don't have access
  // to the existing one.
 
$view = views_get_view('VIEWNAME');

 
// the array() indicates no arguments, which will provide the summary view.
  // We also don't want the pager for this view.
 
print views_build_view('embed', $view, array(), false, false);
?>

About this page

Drupal version
Drupal 4.7.x

Reference

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.