[dokuwiki] Re: exporting pages to RTF and printing

  • From: Robin Getz <robin.getz@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 19 Apr 2011 10:02:03 -0500

On Sun 17 Apr 2011 16:19, Nick Putman pondered:
> Hi,
> 
> I am looking for the most straightforward method of users having the 
> option of downloading or printing a version of a wiki page.
[snip]
> I am also interested in a one-click print solution.  When I click on the 
> print icon in the Tools plugin though, nothing happens.  I am aware that 
> I can use my browser's standard print option, but would like a clickable 
> link if possible.

Add this into your template.

<a href="javascript:window.print()"><img src="<?php echo 
DOKU_BASE?>lib/tpl/xxx/images/printer.png" alt="print this page" title="Print 
This Page"/></a>

change the png location to suite your local install.

This is a common one people use:
http://en.wikipedia.org/wiki/File:Printer.png

Just be sure to give attribution, as required by the license.
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: