In Drupal 7
- created a block view (the so-called * super_gallery *) of the grid format
- specialized specialization added
views-view-grid--super-gallery--block.tpl.php - a cleared registry of topics.
- cleared all caches
Using the preview editor in the editor. I see the result modified by the template. OK
Using <?php print views_embed_view("super_gallery", "default", $gallery_arguments); ?>
inside another template to show * super_gallery * view, it shows the result unchanged. Bad
How to use templates with views_embed_view?
EDIT 1
Tried also:
$view = views_get_view("super_gallery");
print $view->preview("default", $gallery_arguments);
and
$view = views_get_view("super_gallery");
print $view->execute_display("default", $gallery_arguments);
Nothing changed
source
share