PageStatsPlugin
Display page view and save statistics of a specific page
Syntax Rules
%PAGESTATS{ web="%INCLUDINGWEB%" topic="%INCLUDINGTOPIC%" max="10" }%
| Parameter |
Description |
Default |
web |
Name of web |
%WEB% |
topic |
Name of topic |
%TOPIC% |
max |
Limit the number of entries shown |
(all entries of the current month) |
Examples
| Example |
Description |
%PAGESTATS% |
All stats of the current topic for the current month |
%PAGESTATS{ max="10" }% |
The 10 latest stats of the current topic for the current month |
%PAGESTATS{ web="%INCLUDINGWEB%" topic="%INCLUDINGTOPIC%" }% |
All stats of the included topic; useful to include a generic statistics page |
Sample Output
Demo
Plugin Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%, i.e.
%PAGESTATSPLUGIN_SHORTDESCRIPTION%
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Display page view and save statistics of a specific page
- Debug plugin: (See output in
data/debug.txt)
Plugin Installation
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
- Download the ZIP file from the Plugins web (see below)
- Unzip
PageStatsPlugin.zip in your twiki installation directory. Content: | File: | Description: |
data/TWiki/PageStatsPlugin.txt | Plugin topic |
data/Sandbox/TestTopicPageStatsPlugin.txt | Plugin topic test |
lib/TWiki/Plugins/PageStatsPlugin.pm | Plugin Perl module |
- Visit
configure in your TWiki installation, and enable the plugin in the {Plugins} section.
- Test if the installation was successful:
Plugin Info
Related Topics: TWikiPlugins,
TWikiPreferences