This module doesn't seem to work if embedded in a page with the following code:

$view = views_get_view('myview');
$view->page_type = 'table';
echo views_build_view('embed', $view, array(arg(1)), false, 15); 

The view displays fine but the editable part of the view doesn't display at all.

The module also doesn't work if the view is embedded using a cck view field.

Is there a way around this? I'm trying to build a nice admin page and this would be very useful.

Comments

tanc’s picture

Status: Active » Fixed

Doh! I just realised what I did wrong, which was to specify that the view page_type be a table rather than leave it as an editable table. So the working code is simply:

$view = views_get_view('myview');
echo views_build_view('embed', $view, array(arg(1)), false, 15); 

Sorry about that...

Anonymous’s picture

Status: Fixed » Closed (fixed)

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