0

I am using Print module to print a Drupal node. Recently users have asked the ability to print a node in form of individual pages.

For example if a paged 'Drupal' article spans on 5 pages, user wants the ability to print only 2nd page.

I tried to analyze the var_dump of a node (by pro-grammatically loading it) to find any information related to paging but I did not have any luck.

I am thinking to do paging of a node pro-grammatically and load different paged content in an array.

How can I do this ?

Please let me know if I need to provide more information.

  • 1
    How do you achieve a paged node? – Елин Й. May 15 '14 at 6:17
  • I later discovered that system was using pagebreak to create different pages. – user11 Jun 3 '14 at 6:07
0

I was able to get specific paged content using following code.

  $data = node_load($nid);
  $pages = explode('<!--pagebreak-->' , $data->body['und'][0]['value']);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.