Download & Extend

Print View A-delta while icon is sitting on View A

Project:Printer, e-mail and PDF versions
Version:6.x-1.8
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Currently I am able to print and pdf Views by using the feature of "Show link in system (non-content) pages: "

However The view I have in the screen is less suitable for a printed version. I have a directory (www.example.net/directory/members) that will print to www.example.net/printpdf/directory/members. However the view uses a pagers,displaying 20 members per page. Obviously the printed version does not print the entire directory.

Thus I would like to print a special view that displays all members:
www.example.net/directory/members/print-version -> www.example.net/printpdf/directory/members/print-version.

While placing the link on the original page:
www.example.net/directory/members -> www.example.net/printpdf/directory/members/print-version.

Should I use a custom print.tpl.php, your api, or include a link in the header or footer of a view?
Should I use one of drupal's hooks (form_alter, _preprocess, etc.)?

Thanks.

Comments

#1

Status:active» postponed (maintainer needs more info)

From the point of view of the print module, you can do that easily. Remove that views path from the "Show link in system (non-content) pages" configuration, so that the module doesn't create the link anymore...

You'll probably need to create a new Page display for that view, removing the pager in the new display.

Then you have to add the links back manually by inserting them in the 'Header' section of the original page. Either copy-paste the entire HTML for the links or enable the PHP filter and add calls to print_insert_link($path) and print_pdf_insert_link($path), where $path is the path to the special view.

Make sure that this new header is not in the display with the pager removed, or may get links back to itself in that view.

João

#2

Status:postponed (maintainer needs more info)» closed (fixed)

No further info in two weeks. Closing the issue.

#3

i João, I used the method you describe here to put a link in the footer of one of my views. (well, a method SIMILAR to this one, infact: I wasn't able to get any output from print_pdf_insert_link).
I would like to use the method described in FAQ #15 to hide this link from the PDF document, as I'm trying to print a clean version of the page without useless links to simulate the download of an "official" document.
But, as far as I can tell from my tests, there is no "build_mode" value to read from the view, so I do not know how to tell is the footer must be displayed.
Do you happen to know a trick to understand if a view is being displayed on screen or being printed on a PDF page?

Thank you very much,
Massimo

nobody click here