• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Users now have to use the print template - directly printing from the browser (CTRL-P) does not use any specific print style.

Possible solutions:

  1. Add another stylesheet variable: MEDIAPRINTSTYLEURL.
    • Feels hackish to me. Where do we stop?
  2. Let the twiki webmaster add print styles to twiki.pattern.tmpl.
    • And let him redo it and redo it with every twiki update
  3. 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 smile 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

ItemTemplate
Summary PatternSkin: Missing support for css print styles
ReportedBy ArthurClemens
AppliesTo Engine
Priority Normal
CurrentState Closed
WaitingFor

Checkins 7273
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2005-11-03 - WillNorris
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback