Problem with Printer Friendly Pages/Book module
NickHBO - November 28, 2004 - 03:10
I've noticed that the book module already includes a printer friendly page link to its own type of printer formatting but if you have the printer friendly page module installed you get a second link to print from it. This is sure to confuse users and just looks wasteful. Is there anyway I can get rid of the printer friendly page module for just the book module? For example have the printer friendly page module used on all pages but book pages.
Thanks

Real printer friendly
The book printer-friendly link takes the book contents and puts them together in one page.
If you just want a printer friendly version of the current page, you can use print stylesheets in your theme. Make a stylesheet with media="print" and hide all the things you don't want printed. If a user prints or takes a print preview, the print stylesheet will be used. This works on all browsers.
If you want to start your print stylesheet from scratch rather than adding on to your regular stylesheet, specify the normal styles with media="screen" and the print styles with media="print".
I use this on my site:
http://www.acko.net/blog
Try out a print preview, and notice how the sidebar is gone, the page covers the full width and the header is smaller.
Not friendly enough
The book printer-friendly link takes the book branch rooted at the current page and puts it together in one page--not the whole book unless you're on the first page. In theory you might want just the current page, unexpanded.
Editing the theme isn't a quick-and-easy approach for a site where users are allowed to choose among many themes. A print stylesheet ought to be built into all themes or into the core so it would work with all browsers as you've described. As of 4.5.1 it doesn't seem to work that way.
Book module: Print preview configuration
Print preview configuration should be a standard feature of the book module.
At lease provide a link back to the homesite (labeled with the site name), and the standard footer copyright notice at the end.
Currently, print preview pages are my top enterance pages, since the they are spiderable. ALAS, they are also my top exit pages, since there is no link back to the homepage.
There must be a link back to the homepage, otherwise users leave the site.
Amnon
-
sakeret.com | hitech-dolphin.com | small-business-web-hosting-strategies.com
problem with images
I've also noticed that if the book features image.module nodes that have been put into a book outline, then when the user prints the book, none of the images are included.
That's a big step to fix, in the meantime though, I think it would be best to make the printer-friendly link an option.
I *Want* two links but do not have them
One of the things I am using Drupal for is to create a book of user documentation for our WebOPAC library catalogue.
I'd like to put 'help' links on the WebOPAC pages that displays just the help text in a small popup or maybe include it as part of the WebOPAC page. I do not want the menus, headers and all that stuff. Ideally I'd like to get an XML page, but vanilla HTML would do.
I see I can do this by commenting out the recursive part of the book_print functions in book module, but 'd rather not.
So I saw this and thougt I could install and modify the Print module.
But I don't get the Link onBook pages :-(
Easily fxed though :-)
I am wondering if I could use XMLRPC but I think that is only used by the Blogger API.
Don Robertson
Systems Administrator
Hun Sen Library
Royal University of Phnom Penh
don@robertson.net.nz 012 769 280
Footer copyright CSS workaround
I put this in print.css...
.section-1:after {content: "Copyright 2007-2008 Kindopvoeden.nl.
font-size: 0.8em;
}
Might be not a desirable solution, but as a workaround (edit: for FireFox only) it will do...
Bugger, doesn't work for IE, which makes it rather unsuitable.