This module themes the pager with a textfield input for direct random access to any page instead of clicking page links. It's especially useful when the number of pages are very large. Drupal's built-in pager only allows sequential access to page and it could take forever to scroll through very large number of pages. This pager is very compact and can be made tiny yet able to jump to any page by CSS styling the first/previous/next/last links with graphics like the example shown here.
This pager can be used in two ways:
- Through the module settings page, admin can replace the default built-in pager or Views' views_mini_pager with this pager.
-
Developers can use the 'drpager' theme hook. Instead of calling:
<?php
theme('pager', ....
?>change to:
<?php
theme('drpager', ...
?>
Note: This pager relies on javascript so if your site must work even without javascript, then this should not be used. See README.txt for the reason and why it cannot gracefully degrade without Javascript.
Tips: try hitting the up/down arrows and page up/page down keys when the page text field is selected.
Attention: this module doesn't work when the devel theme developer module is enabled.
Demos
- Using the 'drpager' theme hook
- http://zen.hddigitalworks.com/drpager
- Override the 'pager' theme hook
- http://zen.hddigitalworks.com/node?page=5
- Override the 'views_mini_pager' theme hook
- http://zen.hddigitalworks.com/drpager-views
Project Information
- Development status: Under active development
- Module categories: Content Display, Paging, Views
- Maintenance status: Unknown
- Reported installs: 372 sites currently report using this module. View usage statistics.
- Last modified: October 24, 2010