Hello,
I needed to merge a pdf generated with the Print module (from a Views display ) with pdf files attached to the node from which the display was composed, so I tried using the Views Append submodule. While it does seem to recognize tokens / Views rewrite patterns although it does NOT list them, the problem is that the same attachment is printed 3 times: the first time it's also only partially displayed in a a4 page, the other two times it is displayed in full in a wider format page.
I also wonder about the name of the module. To "append" means to add at the end, so a more appropriate name wouldn't perhaps be Views PDF Embed?
Comment | File | Size | Author |
---|---|---|---|
#7 | appended-view-patch.jpg | 44.48 KB | kevster |
#7 | appended-view-pre-patch.jpg | 75.79 KB | kevster |
#4 | views_pdf-Views_Append_displays_multiple-2130343-4.patch | 2.08 KB | vegansupreme |
Comments
Comment #1
tuccio CreditAttribution: tuccio commentedComment #2
vegansupreme CreditAttribution: vegansupreme commentedIncluding views seems to have similar problems.
#2072889: Include View Duplicates Content
Comment #3
killua99 CreditAttribution: killua99 commentedComment #4
vegansupreme CreditAttribution: vegansupreme commentedI think this patch fixes it. So far I've only done one test.
It mostly just adds this variable
$this->view->pdf->render_flag[$index]
and an if statement to check if this variable has been set. Quick and dirty.Comment #5
killua99 CreditAttribution: killua99 commentedWe should use
Wat? (typo I know)
Comment #6
kevster CreditAttribution: kevster commentedFirst of all many thanks for this very useful and needed module and also thx for supplying the patch file.
Ive just applied it against 7.x-1.4 ok but Ive noticed that although its fixed the duplication the appended view has been added before the main view and the layout is off only showing half the page?
If I run both views separately they work fine so I know its not a layout issue.
Attached screenshots below of pdfs.
Comment #7
kevster CreditAttribution: kevster commentedComment #8
killua99 CreditAttribution: killua99 commented