Concatenate node on print, PDF and email (Print basket)
| Project: | Printer, e-mail and PDF versions |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
I've seen some sites allowing to create a customized PDF or printable page using a basket / cart where putting pages in. In this way, one can print a single page or concatenate multiple pages on his/her own basket.
This module uses a single template to generate PDF, printable pages and emails: now it adopts a per-node approach, allowing to handle a single node (the first use case). I tried to transform the $print array into an array of array passing to _print_generate_node() function an array, instead a single value. With little changes, the print, printmail and printpdf URLs can be adapted as follows:
Where #2 concatenates node 2 and node 1 for print.
With this feature, a print basket can be implemented even with a javascript + cookies based tool (to store nids array) that call that URL (that generates the concatenated content) using this module.
So, the implementation of a working basket should comprehend:
- New URLs implementation and testing
- Basket tool creation for print, mail and pdf (each medium should have his own basket)
I've not tested deeply this code: it surely can be optimized and it covers only the first step. Comments and ideas for a basket tool are warmly welcomed.
| Attachment | Size |
|---|---|
| print_concat.patch | 3.15 KB |
| print_pages_concat.patch | 1.97 KB |

#1
If Printer, e-mail and PDF versions supports Views2, then you just need to use Flag Module to flag nodes, then print out the views result.
#2
I would much rather use an existing solution (Views based) than doing it via this added code.. Can someone try that option and report back if there is anything needed or if "just works".
João
#3
Postponing it..
#4
I understand this is postponed. I'd like to comment this would be a neat next-gen feature.
#5
I have a similar need (not a basket but a "print checked items" button) that would print the selected nodes - - but I cannot seem to make it work right. Love to know a solution if one exists. This requirement also maps to "email checked items".
This would be great enhancement but I realize it may be somewhat complex - - the views path seems most promising but I cannot see how to do it.
N