Spliting a node into multiple pages

by Ivan Ivanov   Last Updated January 10, 2018 23:07 PM

Content type - article. I want to make articles split into multiple pages when the article itself becomes too long. For example if we have an article "how drupal works" it would be huge :), I want to split it to several pages and at some point you get "continue to page 2 of 10" and then "continue to page 3 of 10" and so on. Hope you got me and can share some ideas. Thank you in advance!

Tags : 7 nodes


Answers 4


I suggest split your text to some part with jquery and by scrolling you append(may with some effect like fadeIn .... ) another part to main part.
I suggest you achieve this job by jquery (client side solution)

zhilevan
zhilevan
November 26, 2013 13:03 PM

You are looking for Smart Paging module

Provides splitting up long Drupal content into sub pages by number of characters/words or by a placeholder HTML tag for node, user and taxonomy term entities.

For Drupal 6

Paging module, you can set character limit and it will automatically split in to sub pages see the below screen shot

Break long pages into smaller ones automatically by words(or characters) limit

enter image description here

Bala
Bala
November 26, 2013 13:03 PM

Well a workaround I would use would be to split it into multiple articles and combine them with a view-page (which has a pager) since you are working with views allready. Just filter out your articles on nid or some (hidden) tag. If you want them all to be the same max-size you could use https://drupal.org/project/maxlength. Add part X to title, this way its also easy for you readers to distinct the different pages.

Marcel
Marcel
November 26, 2013 18:37 PM

I dont see what Views AJAX pager (which pages views result lines) has to with your article display (which is per se 1 result only). Two different things to page. But you might wish to output your "article content as a computed field". Start with a computed field that prints only the first x words of your article content field. (or up until the first page-breaker) Finish it off with a self-generated html "more link". That more link calls your view with an argument. You can use that argument in your computed field's PHP. Display the x-th part depending on your argument received.

user18099
user18099
November 27, 2013 16:03 PM

Related Questions



Disable read more link

Updated March 26, 2015 14:02 PM


Node Cancel Button?

Updated May 26, 2015 03:03 AM