Inserting a View into a Page in Drupal 6


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /* You can simply paste this code into a page or template */
  2.  
  3. <?php
  4. $view_args = array();
  5. $display_id = 'page_1';
  6. $view = views_get_view('[enter view name here]');
  7. if (!empty($view)) {
  8. print $view->execute_display($display_id , $view_args);
  9. }
  10. ?>

URL: http://www.pixelclever.com/how-programmatically-insert-a-view-drupal-6

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.