How to display a View in a Block in Drupal

Posted by Mr PHP on

If you want to use a view to get the power of pagers but you need it to render in a block then follow this guide.

Just create a new block and use this as the PHP code:

<?php
print views_build_view('page',views_get_view('your_view_name'),$args,true,10,$page);

Tagged with : Drupal


Comments