Hello,
I have installed print module and it works great.
However,when I click on the 'Print friendly version' link within a paginated views, it shows only the current page's views results.
Ideally, it should show views results of all pages right?
Help awaited.

Thanks.

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Right, but really not possible.

The module will create a printer-friendly version of what Drupal is showing. If it's showing a pager, the PF version will also have a pager.

You can however, tell the module to show a printer-friendly version of something else. You'll have to manually add the link to a page 'print/somethingelse', and define that 'somethingelse' as the same view without a pager.

supriyarajgopal’s picture

Ok, so you mean to say that I clone the very same view without pagination and then in the actual view, add a link 'print/clone_view' to show a printer-friendly version of the same view?

I shall try that and update you,thanx! :)

Update: This method works..Thanx @jcnventura! :)

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Good to know it works.

ilreports’s picture

Any idea how to make this work if there are exposed filters in the view?

supriyarajgopal’s picture

Issue summary: View changes

If there are exposed filters and if you want the filters to be passed on to the printer friendly version of the view as well, check the 'Remember last selection' option in each of the filter criterion and Save the view.

drenton’s picture

Another option is to change the views pager in hook_views_pre_build.

function hook_views_pre_build(&$view) {
  $request_path_array = explode('/', request_path());
  if (in_array($request_path_array[0], array('print', 'printepub', 'printmail', 'printpdf'))) {
    $view->init_pager();
    $view->set_items_per_page('0');  
  }
}
ann b’s picture

#6 worked for me. Thank you @drenton.

I did set the items per page to 1000 however. We have a view that retrieves 25k+ records if not filtered, and we're afraid a user may accidentally click the Printer Friendly link and cause a maximum execution time exceeded php error.