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 



Website Promotion
DIRECTORY
is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


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

Expand | Embed | Plain Text
  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.