You are here: Foswiki>Tasks Web>Item12881 (05 Jul 2015, GeorgeClark)Edit Attach

Item12881: Add a preference to set the default number of revisions to show in topic history.

Priority: Enhancement
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: HistoryPlugin
Branches: master
Reported By: DavidAllen
Waiting For:
Last Change By: GeorgeClark
A user on my site does not like the default number of revisions shown on the history page (10), and would like to choose a different default.

Fix for viewtopicactionbuttons.tmpl:
%TMPL:DEF{"history_history_link"}%<span class="foswikiRequiresChangePermission"><a href='%SCRIPTURLPATH{"oops"}%/%BASEWEB%/%BASETOPIC%?template=oopshistory%IF{"defined HISTORYPLUGIN_NREV" then="&nrev=%HISTORYPLUGIN_NREV%" else=""}%' rel='nofollow' %MAKETEXT{"title='View total topic history' accesskey='h'>&History"}%</a></span>%TMPL:END%

This adds support for the preference variable HISTORYPLUGIN_NREV, and will use it to set the default number of revisions on the history page.

-- DavidAllen - 02 May 2014

Seems like a simple enhancement. Targeting for Foswiki 1.2, but needs further review.

-- GeorgeClark - 31 May 2014


ItemTemplate edit

Summary Add a preference to set the default number of revisions to show in topic history.
ReportedBy DavidAllen
Codebase 1.1.9, trunk
SVN Range
AppliesTo Extension
Component HistoryPlugin
Priority Enhancement
CurrentState Closed
Checkins distro:9b9f0219e253
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
masterCheckins distro:9b9f0219e253
Topic revision: r5 - 05 Jul 2015, GeorgeClark - This page was cached on 27 Oct 2016 - 15:03.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License