Posted by ram0135 on May 28, 2008 at 6:24am
Jump to:
| Project: | Views |
| Version: | 5.x-1.6 |
| Component: | page displays |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hello There,
Is it possible to place an additional pager at the top of my content as well as the default bottom pager?
I dug around the module files but couldn't find a template to change. Can it be set via the regular theming way? If so, what snippet would the pager be called up by?
We are using table view, and the pager as only 50 records are displayed per page. For usability, it would be nice to include the pager at the top of the table as well.
Thanks.
Comments
#1
The pager is in the views-view.tpl.php template. You can put another pager in with that template easily.
#2
Crap, sorry, that's Views 2.
For Views 1 you have to override theme_views_view. You can cut & paste the code and put an additional pager in. It's not quite as easy as the views 2 method but is doable.
#3
Automatically closed -- issue fixed for two weeks with no activity.
#4
I found this code:
<?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;
}
?>
Here: http://pedroposada.com/blog/place-pager-top-and-bottom-views-view