Needs work
Project:
Printer, email and PDF versions
Version:
7.x-1.2
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 May 2013 at 11:52 UTC
Updated:
6 Jul 2013 at 10:27 UTC
Hi, in some use cases you can't load the special print-friendly page, but the default print.css file.
Specially my problem was the get_directions page. Where the user first generate the directions map with his route, and if I used the callback for print, the map and the route was lost of course.
To stay with print-links, i made a patch.
The patch adds a new settings field to the print config page, where you can add the nids, which schould use the default browser print function.
The logic is very simple: just override the $path variable to '#' and sets the attribute "onclick" to "window.print()".
So, please if somebody is interested in this, download the patch and try it out.
thanks, dropfen
| Comment | File | Size | Author |
|---|---|---|---|
| use_default_browser_print_function.patch | 3.38 KB | dropfen |
Comments
Comment #1
dropfen commentedComment #2
jcnventuraNode-specific config settings should be set in the node edit page.
Comment #3
dropfen commentedHmm, thanks for suggestion.
When I have some free time, I will take a look on it, and add it to the Print settings at the node edit page.