cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Developing extensions (plugins skins etc.): Needs followup in Tasks

Change 'View topic history' button to use HistoryPlugin

This is a question I answered by myself pretty easily and I thought I would share it.

I really like the HistoryPlugin (with RevCommentPlugin/CompareRevisionsAddOn combo!) which works by using the oopshistory template on the History link at the bottom of each topic. I wanted to change the link in this skin to pull up the same page showing the list of revisions.

In templates/view.foswikisite.tmpl change this:
%TMPL:DEF{"top:toolbarbutton_rdiff"}%<span><a href="%SCRIPTURL{"rdiff"}%/%WEB%/%TOPIC%?type=history" title="View topic history" rel="nofollow" ><img src="%PUBURL%/%SYSTEMWEB%/FoswikiSiteSkin/page_white_stack.gif" width="16" height="16" /></a></span>%TMPL:END%

To this:
%TMPL:DEF{"top:toolbarbutton_rdiff"}%<span><a href="%SCRIPTURL{"oops"}%/%WEB%/%TOPIC%?template=oopshistory" title="View topic history" rel="nofollow" ><img src="%PUBURL%/%SYSTEMWEB%/FoswikiSiteSkin/page_white_stack.gif" width="16" height="16" /></a></span>%TMPL:END%

Perhaps not something everyone would want though. I see the value of the question raised in Tasks.Item79 - where the latest revision is easily and quickly obtained.

QuestionForm edit

Subject Developing extensions (plugins skins etc.)
Extension FoswikiSiteSkin
Version Foswiki 1.0.9
Status Needs followup in Tasks
Topic revision: r2 - 19 Feb 2010, WillNorris - This page was cached on 18 Sep 2018 - 01:51.

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