Pedro Posada | views theming
  • Posted on March 25, 2009 - 5:02pm

    Very useful lines of code to embed "Views 2" views into your nodes. Works almost as the old use_pager, $view->nodes_per_block)); ?> in Drupal 5 but for Drupal 6. This is also a way to embed views programatically into your pages and nodes.

    The following lines of code will load a view and print the display.

  • Posted on October 19, 2008 - 1:29pm
    Go to this link: http://drupal.org/node/70145#comment-928042
  • Posted on August 5, 2008 - 12:44am
    This code helps you place the pager at top and bottom of your views. Copy and paste this code into your template.php file. use_pager) { $output .= theme('pager', '', $view->pager_limit, $view->use_pager - 1); } $output .= theme_views_view($view, $type, $nodes, $level = NULL, $args = NULL); return $output; } ?> Tested in drupal 4.x and 5.x