PageStatsPlugin
displays page statistics log (viewing and saving the page)
Syntax Rules
Parameters
| web | %WEB% |
| topic | %TOPIC% |
| max | all entries |
Examples
- %PAGESTATS%
- %PAGESTATS{ max="10" }%
- %PAGESTATS{ web="%INCLUDINGWEB%" topic="%INCLUDINGTOPIC%" }%
Demos
feel free to improve the examples by editing
TWiki:Plugins/%UNSPACEDTOPIC%
PageStatsPlugin Global 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 = simple page stats log
- Debug plugin: (See output in
data/debug.txt)
Plugin Installation Instructions
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 Plugin web (see below)
- Unzip
%UNSPACEDTOPIC%.zip in your twiki installation directory. Content:
| File: | Description: |
data/TWiki/%UNSPACEDTOPIC%.txt | Plugin topic |
data/TWiki/%UNSPACEDTOPIC%.txt,v | Plugin topic repository |
lib/TWiki/Plugins/OoPlugin.pm | OoPlugin? Perl module base class |
lib/TWiki/Plugins/%UNSPACEDTOPIC%.pm | Plugin Perl module |
data/Sandbox/TestTopic%UNSPACEDTOPIC%.txt | Plugin topic test |
- Test if the installation was successful:
- Sandbox.TestTopic%UNSPACEDTOPIC%?
Plugin Info
Related Topics: TWikiPreferences,
TWikiPlugins
--
TWiki:Main/WillNorris - 25 Oct 2003