Users now have to use the print template - directly printing from the browser (CTRL-P) does not use any specific print style.
Possible solutions:
- Add another stylesheet variable: MEDIAPRINTSTYLEURL.
- Feels hackish to me. Where do we stop?
- Let the twiki webmaster add print styles to
twiki.pattern.tmpl
.
- And let him redo it and redo it with every twiki update
- Better: include a new template file in twiki.pattern.tmpl:
mediastyles.tmpl
. This template has only style declarations+definitions, with a bare style to start with:
<style type="text/css" media="print">
/* define custom print styles here */
</style>
Other styles can be defined as well in this template.
AC
Due to the number of possible media types (see
http://www.w3.org/TR/REC-CSS2/media.html#media-types for the list), I am in favor of the third option. The first option would be my second choice. Number two looks like too much headache for anyone involved with a web.
--
MattLewandowsky - 02 Nov 2005
finally, talk of a CSS print sheet
be sure to include something along the lines of this bit of CSS which will print hyperlinks' URL after the link
a:link:after a:visited:after {
content: " (" attr(href) ") ";
font-size: 90%;
}
WN
Good idea. Is included by default. It makes a mess of the menus, but I suppose that these should be hidden. So this template needs some refinedment.
Template renamed to
cssmediatypes.tmpl
. SVN 7273.
AC
infrastructure done (although i don't know where to apply my patch); see
Item831 for print media improvements --
WN