Update Info Plugin
UpdateInfoPlugin will add a "new" or "updated" icon after a
WikiWord link if a
%ISNEW%
tag is used after the link, and the linked topic was recently touched.
WikiWord %ISNEW%
will be expanded to:
- WikiWord - if the topic is neither new nor updated
- WikiWord - if the topic is younger than five days and is revision 1.1
- WikiWord - if the topic revision is higher than 1.1 and the topic was updated during the last five days
Default values for the "version" and "days" parameters are set sitewide here in
UpdateInfoPlugin#PluginSettings, but can be overridden pr. topic (or in WebPreferences pr. web), by setting variables
UPDATEINFOVERSION
and/or
UPDATEINFODAYS
.
Syntax Rules
The %ISNEW%-tag must be written after a WikiWord separated by
exactly one space.
Full %ISNEW% syntax takes one or two options:
- days: Changes the number of days a Topic is marked as new or updated
- version: Specifies which revision is still considered to be new
Full syntax overrides site/topic defaults.
Syntax Examples
-
MyTopic %ISNEW%
-
Web.ToPic %ISNEW%
-
TopIc %ISNEW{days="15"}%
-
TopiC %ISNEW{days="20" version="1.4"}%
UpdateInfoPlugin supports these TML link syntaxes:
- WikiWord
- (WikiWordAs)WebName.WikiWord
- [[WikiWord][link text]]
- [[WebName.WikiWord][link text]]
- [[link text]]
- [[link-text]] (links to non-WikiWord topics, i.e. topic names containing special chars like "-")
- [[singleword]]
- WIK IWO RDS (abbreviations / acronyms)
(All followed by the %ISNEW% syntax).
Examples (Works if installed)
UpdateInfoPlugin Settings
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Add a %ISNEW% tag after a WikiWord to get a visual display of whether the linked topic was created or updated recently
- Sitewide "version" default
- Set UPDATEINFOVERSION = 1.1
- Debug plugin: (See output in
data/debug.txt
)
Plugin Installation Instructions
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See
http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Plugin Info