Item11280: Request for configuration to have both Printable Version and Generate PDF links
Priority: Low
Current State: Confirmed
Released In: n/a
Target Release: n/a
The first bullet of the usage section on
http://foswiki.org/Extensions/GenPDFAddOn#Usage describes how to replace the Printable Version link at the bottom with a link to generate PDF. Following is a configuration to have both links available. On IRC (Freenode #foswiki) gac410 provided a template to achieve this. I created the following in the templates directory (as view.mygenpdf.tmpl) and then setting SKIN = mygenpdf,pattern.
%TMPL:INCLUDE{view}%
%TMPL:DEF{"printable"}%<span>
<a href='%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%?cover=print;%QUERYSTRING%%REVARG%' rel='nofollow' %MAKETEXT{"title='Printable version of this topic' accesskey='p'>&Print version"}%</a></span>
%TMPL:P{"sep"}%<span><a href='%SCRIPTURLPATH{"genpdf"}%/%WEB%/%TOPIC%?skin=%TMPL:P{printskin}%;%QUERYPARAMSTRING%%REVARG%' rel='nofollow' %MAKETEXT{"title='Generate PDF version of this topic' accesskey='p'>Generate &PDF"}%</a>
</span>%TMPL:END%
--
CasperFoo - 22 Nov 2011