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
Applies To: Extension
Component: GenPDFAddOn
Reported By: CasperFoo
Waiting For:
Last Change By: GeorgeClark
The first bullet of the usage section on 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.


<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>

-- CasperFoo - 22 Nov 2011


ItemTemplate edit

Summary Request for configuration to have both Printable Version and Generate PDF links
ReportedBy CasperFoo
Codebase trunk
SVN Range
AppliesTo Extension
Component GenPDFAddOn
Priority Low
CurrentState Confirmed
TargetRelease n/a
ReleasedIn n/a
Topic revision: r2 - 22 Nov 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy