Search code examples
phpdrupaldrupal-6drupal-views

Drupal: How to display block/region in views page?


I have a views page that contains a listing of one of my content type. I used views-view-list--<name of my view>.tpl to theme the page. However, the region/blocks that I defined are not displaying. In other pages it works fine, but on the views page it does not. I'm trying to display a user login block in my defined region.

Please tell me how to access my user login block or my region to display on my views.

Your help is greatly appreciated. I'm using drupal 6 by the way.

Best regards,


Solution

  • Think i ran into something similar yesterday. I was trying to print a region, for example

    <?php print $footer ?>
    

    but inside a tpl file that came from views - and for whatever reason, it doesn't output the region from one of the views tpl files.

    I used this code:

    <?php print theme('blocks', footer); // change "footer" to the name of your region ?>