Minimax pager

mattyoung - July 12, 2009 - 23:16
drpager.png

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 super mini by CSS styling the first/previous/next/last links with graphics like the example shown here.

This pager can be used in two ways:

  1. Through the module settings page, admin can replace the default built-in pager or Views' views_mini_pager with this pager.
  2. 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.

Demos

Using the 'drpager' theme hook
http://zen.hddigitalworks.com/drpager
Override the 'pager' theme hook
http://zen.hddigitalworks.com/
Override the 'views_mini_pager' theme hook
http://zen.hddigitalworks.com/drpager/views

Releases

Official releasesDateSizeLinksStatus
6.x-1.72009-Jul-2812.75 KBRecommended for 6.xThis is currently the recommended release for 6.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Nov-0313.47 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.