Views 1 provided some useful functionality where one could embed a view within another view - this was especially useful where one set of exposed filters could essentially update two views at the same time. The code was:

<?php
// This is a new variable introduced in Views module revision v.1.94;
// it conveniently gives one access to the current view (in this example, view 1)
global $current_view;
// Let's now load view 2
$view = views_get_view('view-ViewName');
// $current_view->args contains the arguments view 1 is currently being provided with;
// we can now build view 2 with exactly the same arguments as view 1
print views_build_view('embed', $view, $current_view->args, false, false)
?>

I notice that views_build_view has now changed to views_embed_view - but something else seems to have changed, as this snippit no longer returns any data. Curious if anyone would know anything about how to update this for Views 2?

Many thanks.

Comments

dawehner’s picture

Status: Active » Fixed

look at http://groups.drupal.org/node/17397#comment-59404

this should solve your problem

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.