Tags:
create new tag
, view all tags

Question

I am trying to add the genpdf plugin to TWiki 4.04. It works successfully if I simply replace view in the URL to genpdf, so the plugin itself is working correctly.

What I would like to do now is add a PDF tab next to the Edit, Printable, and Attach tabs at the top right of each page. I'd also like to add a PDF link to the bottom topic acations bar as well. The problem is I do not know what to edit in order to add this extra tab/link.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: SLES9
Web server: Apache 2.2
Perl version: 5.8
Client OS: SuSE10.1
Web Browser: Firefox 1.5
Categories: Plugins

-- AnthonyTuel - 02 Aug 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This depends on the skin used. For modifications to the default PatternSkin , see PatternSkinCustomization, PatternSkinCssCookbook. Look at PatternSkinCustomization#I_want_to_hide_the_edit_buttons and redefine:

  • %TMPL:DEF{"toolbar_buttons"}% for the toolbar buttons on top, defined in viewtoolbar.pattern.tmpl
  • %TMPL:DEF{"topicactionbuttons"}% for the bottom links, defined in view.pattern.tmpl

(You might want to look at a more recent PDF solution, PublishContrib)

-- PeterThoeny - 09 Sep 2006

 
Topic revision: r2 - 2006-09-09 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.