0
votes

I create a new theme in Drupal. I need to display a view in custom page but i don't want to use the region. I need the php code that we add it to the tpl page

1

1 Answers

1
votes

You can use views_embed_view within your template. The first parameter is the collective name for the Views and the second is the display name.

<?php echo views_embed_view('myview', 'block'); ?>