Closed (fixed)
Project:
Printer, email and PDF versions
Version:
4.7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2006 at 15:28 UTC
Updated:
15 Aug 2012 at 14:56 UTC
Comments
Comment #1
Bevan commentedDid you find a way to do this?
Comment #2
JohnG-1 commentedI thought this would be easy but it isn't !!! I tried :
but got a load of < / # < gobbledigook ... It looks like there's some drupal filter that prevents me just using old-fashioned HTML img src links ...
The print.module function that formats the 'Printer Friendly Version' link is:
but it's not very themable !
Does anyone know what's going on ?
Comment #3
Bevan commentedWhat sort of gobbledygook did it spit out?
Comment #4
JohnG-1 commentedOK the link title showed up as a
<and the url was something like< / # <gobbledigook ... it has to be an input filter, no?Comment #5
JohnG-1 commentedI found a promising forum thread which - at a glance at least - provides plenty of tips: http://drupal.org/node/49393.
I don't have much time right now so if anyone has any luck with it, it would be great if you could post your solution here.
Comment #6
somebodysysop commentedAnyone got this working?
Comment #7
Bevan commentedI disabled link display in print settings, and manually put the printer friendly url in the theme. Works well.
Comment #8
JohnG-1 commentedadd this to your style.css - make sure the url ref is correct for your icon:
This will 'prefix' your icon into the link label eg '[X] Printer Friendly Version'.
The padding just makes room for the icon.
Comment #9
jcnventuraThe print link is now defined with it's own class: print-page. It should be possible to use this as suggested by JohnG to add your own icon. Try to use the following css:
.print-page {
background:url() no-repeat;
width:px;
height:px;
font-size: 0px;
}
I haven't tried it in IE, but it works well in Firefox.
Comment #10
jcnventuraComment #11
malet commentedHello,
First of all thx for this module. But I'm a beginner in Drupal and i don't know where i'm supposed to change the code. I would like to have differents icons depending on where i am on the website. The icons can be red, blue, orange ...
I watch in the file print.modile the function theme_print_format_link but how can i retrieve the "context" (node or whatever)
Thx you for helping me and have a nice day ;)