You are here: Foswiki>Tasks Web>Item2327 (05 Feb 2010, ArthurClemens)Edit Attach

Item2327: PublishPlugin can be used for single pages too

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: PublishPlugin
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: ArthurClemens
so for starters I want to add a tmpl to replace the print action, and the famfamfam icons etc.

%TMPL:INCLUDE{view}%

%TMPL:DEF{"printable"}%<span>
<a href='%SCRIPTURLPATH{"rest"}%/PublishPlugin/publish?%REVARG%;web=%BASEWEB%;inclusions=%BASETO
PIC%;format=pdf;skin=plain' rel='nofollow' %MAKETEXT{"title='Generate PDF version of this topic'
 accesskey='p'>Generate &PDF"}%</a>
</span>%TMPL:END%

etc

then... redirectto=thegenerated.pdf (or file - html, whatever..)

course, the defaults need tweaking..

-- SvenDowideit - 04 Nov 2009

The problem that is biting me is that the skin url parameter to pass to the plugin also sets the skin of the page.

And redirectto does not work frown, sad smile

-- ArthurClemens - 04 Jan 2010

Documented.

-- ArthurClemens - 05 Feb 2010

ItemTemplate edit

Summary PublishPlugin can be used for single pages too
ReportedBy SvenDowideit
Codebase
SVN Range SVN 5428: Foswiki-1.1.0-dev, Thu, 29 Oct 2009, build 5392
AppliesTo Extension
Component PublishPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins PublishPlugin:7a1747dff4e4 PublishPlugin:79f9bc3da583
TargetRelease n/a
ReleasedIn
Topic revision: r5 - 05 Feb 2010, ArthurClemens
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