This question about Using an extension: Answered
Single click topic publish and redirect to the final pdf
How do I publish a topic using the
Extensions/PublishPlugin and redirect to the final output in a single click?
What I would like is to modifiy the view template of the web such that a Print button can publish the topic and redirect to the finished pdf.
I've tried adding the following line to the view template:
%TMPL:DEF{"printable"}%<span><a class='foswikiPopUp' href='%SCRIPTURLPATH{"rest"}%/PublishPlugin/publish?web=%BASEWEB%;topiclist=%BASETOPIC%;format=pdf;skin=ecoprint;outfile=%BASETOPIC%;endPoint=pub/publish/%BASETOPIC%.pdf'>PDF</a></span>%TMPL:END%
But the endPoint parameter does not seem to work as expected.
--
DeanSpicer - 31 Jul 2012
Just for kicks I tried redirectto instead of endPoint, no luck. Anyone know if there is a good way to redirect to an attachment after a rest script?
--
DeanSpicer - 03 Aug 2012
Ah... the publish script is a bit wierd, it doesn't obey the normal (new) rules for rest script returns.
Add a task "make publish rest script obey normal rules for redirectto" and I'll fix it.
--
CrawfordCurrie - 03 Aug 2012
Task added:
Tasks/Item12032
--
DeanSpicer - 07 Aug 2012