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

TomSherlock - October 23, 2009 - 14:43
Project:Printer, e-mail and PDF versions
Version:6.x-1.8
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

jcnventura - October 23, 2009 - 15:36
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

jcnventura - November 9, 2009 - 11:40
Status:postponed (maintainer needs more info)» closed

No further info in two weeks. Closing the issue.

 
 

Drupal is a registered trademark of Dries Buytaert.