Posted By

tgbdad on 06/11/08


Tagged

drupal phptemplate views


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

basicmagic
panatlantica


Ugly Template Hack to display contents of a view


 / Published in: PHP
 

This is a quick and dirty hack to display the contents of a view at the top of a page. I got some ideas for this from http://drupal.org/node/99721

  1. <body>
  2. <!-- substitute the view name you're trying to debug -->
  3. <?php $view = views_get_view('audio'); ?>
  4. <pre><?php print_r($view) ?></pre>

Report this snippet  

You need to login to post a comment.