Patch which gives simple printfriendlyness to jspwiki

Actually this is a very minor patch it just adds a css for print media to ViewTemplate. which hides leftmenu, search and trail path. Set the main font-size to 10pt (Ensure if this is an acceptable size)

But it looks nice on konqueror.

Exactly what I've been looking for but haven't really managed to look at yet. Thank you! Do you mind if I add this to the distribution? --JanneJalkanen

Be my guest, --PhilipVanBogaert

The Print Preview on Mozilla Firebird 0.6.1 seems to go haywire with this stylesheet... Do you have any suggestions? --JanneJalkanen

The patch is now included in 2.1.68.

On mozilla 1.2 it works fine, but the alternated stylesheet(thats been added) messes up konqueror. e.g: is applied to the normaal screen media.

--PhilipVanBogaert

Hi, I'd appreciate it if somebody would include instructions on how to apply this patch. For example, the file doesn't have any file extension. Exactly what am I supposed to do with this file and ViewTemplate (I presume this is ViewTemplate.jsp) to get this working?

I'm sure there are other people out there like myself who need this functionality yet aren't particularly clear on how to successfully apply the patch? Thanks -- GarryCronin

Download the patch to templates/default of your wiki installation. in that directory issue following command
$ patch -i thepatch
OR get an latest version from cvs.
OR use eclipse (java IDE) to apply the patch.
--PhilipVanBogaert

To show URLs after a link's text, add this to the .css file

/* see http://alistapart.com/c/print.css and http://alistapart.com/articles/goingtoprint/  */
a:link, a:visited {
    color: #566;
    background: transparent;
    font-weight: bold;
    text-decoration: underline;
}
   
a:link:after, a:visited:after {
    content: " (" attr(href) ")";
    font-size: 75%;
}

/* no way to implement this now
#page a[href^="/"]:after {
   	content: " (http://www.alistapart.com" attr(href) ")";
	}
*/
--DaveBrondsema

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
 
CssPrintPatch 2.2 kB 1 09-Sep-2003 00:24 213.193.183.37
« This page (revision-23) was last changed on 27-Jun-2007 17:08 by MurrayAltheim