Closed (fixed)
Project:
Printer, email and PDF versions
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2005 at 12:52 UTC
Updated:
4 Jan 2006 at 01:00 UTC
I have node entries that are added to a book via the outline tab. for these nodes there should not be a 'print friendly' link since they already have it by default and now they have 2 versions.
Comments
Comment #1
firebus commented+1! alternately, a way to turn off the printable page links for book pages...
Comment #2
noid commentedJust in case a 4.6 user reads this issue, this module is disabled for book pages in 4.6. :)
Comment #3
Norrin commentedI'm using v. 4.6.3 and I am having the same problem.
@firebus: What exactly do you mean by '+1! alternately ...'
Comment #4
rrichard63 commentedIn 4.6, the module is indeed disabled for pages whose type is book_page, but not for pages, stories, etc. that have been linked into a book. In line 50 of print.module, it ought to be possible to test for whether the node, regardless of type, is linked into a book outline.
--Bob Richard
Comment #5
bwynants commentedThis is what I did:
in the print_link function I changed
if ($type == 'node' && variable_get('print_show_link', 1) && $main == 0) {
into
if ($type == 'node' && !isset($node->parent) && variable_get('print_show_link', 1) && $main == 0) {
... works for me!
Comment #6
deekayen commentedcommitted to CVS for Drupal 4.7
Comment #7
(not verified) commented