Advertising sustains the DA. Ads are hidden for members. Join today

Paging: Break long pages into smaller ones

Overview

The paging module breaks long pages into smaller ones, either automatically by word/character limit, or by means of a customizable pagination tag. For example:

First page here.
<!--pagebreak-->
Second page here.
<!--pagebreak-->
More pages here.

Installation

  1. Copy the paging-6.x-x.x.tar.gz contents to sites/yoursite/modules directory (usually sites/all/modules) and enable it at yoursite/admin/build/modules .
  2. Enable paging for the content types you want to use it on, in the paging configuration at yoursite/admin/settings/paging .
  3. Enable the paging filter for the relevant input format (usually Filtered HTML), in Input Formats configuration at yoursite/admin/settings/filters .
  4. Your module is now setup and ready to be used.

Frequently Asked Questions

How can I enable the paging module to use Clean URLs?
Drupal's pager system does not support clean URLs by default. A workaround can be found at http://gurpartap.com/node/19 .
How much support does paging provide for CCK node types?
Paging only works with content types using the core "Body" field.
How can I customize the pager navigation?
Either the theme_pager() function can be overridden to make minor customizations (see http://drupal.org/node/173880#function-override) or a complete new(custom) theme function to use can be specified in paging settings at admin/settings/paging.

Support

If you experience a problem with paging module, file a request or issue on the paging queue at http://drupal.org/project/issues/paging. DO NOT POST IN THE FORUMS. Posting in the issue queues is a direct line of communication with the module authors.

Credits

  • Original module written by Marco Scutari.
  • Rewritten and considerably shortened and made more Drupal-friendly by Earl Miles.
  • Yet again rewritten, extended and currently maintained by Gurpartap Singh.

Display a "Show All" (pages) link

For paging module, to add a "Show all" link in the pager, override the theme('pager') function and add the following right before the return

Theming nodes or placing CCK fields based on the viewed page

Paging works on the node body, and by default all other CCK fields are visible on all pages. This behavior is not always what one may want -

Guide maintainers

Gurpartap Singh's picture