Separate nodes into pages with paging module

The paging module gives you the ability to separate the text within the node body field into pages using the <!--pagebreak--> tag within the text.

To install this module just go to Administer >> Site building >> Modules and enable the module.

paging_fig1.jpg

The first thing we have to do is enable the paging filter on an input format. Go to Site configuration >> Input formats. In this example, click on configure for the Filtered HTML.

paging_fig2.jpg

When you are in the settings page scroll down to the Filters field set and tick the Paging checkbox.

paging_fig3.jpg

The final thing we have to do is go to Site configuration >> Paging and select which node type you want the paging tag to be enabled on, in this example I'll tick the Page checkbox.

paging_fig4.jpg

Now it's time to test it out, go to Create content >> Page and create a page node and then add <!--pagebreak--> between the text.

paging_fig5.jpg

Now check out your node page, you should see a pager at the bottom before the comments.

paging_fig6.jpg

There you go now we have a way of separating a node into separate pages. If you have any questions just leave a comment.

Comments

gucci's picture
Member since:
23 December 2009
Last activity:
11 weeks 1 day

Have you tried using this with the Book node type. I can see where this would be REALLY useful

Anonymous's picture

Thanks for the article, nice, clear and useful!
This is something that new comers often ask about, good to see there are excellent options out there.

Anonymous's picture

The pagination module offers some different options for performing the same function. http://drupal.org/project/pagination. Allows you to set automatic pagination for nodes based on character count, specified words, or other options.

Anonymous's picture

Have you tried using this with the Book node type. I can see where this would be REALLY useful, if each chapter in a book (with the chapter TITLES) could be sub-divided into pages!

Anonymous's picture

Paging works very well with the Book content type.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <pre> <h2> <h3>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options