Place Pager at top and bottom of Views view.
Place Pager at top and bottom of Views view.
Categories:This code helps you place the pager at top and bottom of your views.
Copy and paste this code into your template.php file.
<?php
function phptemplate_views_view($view, $type, $nodes, $level = NULL, $args = NULL){
$output = '';
if ($view->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
- 588 reads
Post new comment