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.