[dokuwiki] Re: exporting pages to RTF and printing

  • From: Nick Putman <nickharambee@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 19 Apr 2011 16:30:54 +0100

Robin Getz wrote:
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.

Thanks Robin,

I have the print link working. I would like to place it below the content of the Wiki page, but above the discussion section (I am using the discussion plugin on my Wiki pages). Do you know where I need to add it to enable this.

In the main.php of my template there is just:

tpl_content();

Which clearly refers to another function/page, but I am not sure which.

Also, do you have any ideas about downloading an RTF version of the page?

Nick
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: