Skip to content.
TWiki > SearchResult? > PageStatsPlugin

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)
    • Set DEBUG = 0

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

Plugin Author: TWiki:Main/WillNorris
Plugin Version: 25 Oct 2003 (V1.000)
Change History:  
25 Oct 2003: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/%UNSPACEDTOPIC%
Feedback: http://TWiki.org/cgi-bin/view/Plugins/%UNSPACEDTOPIC%Dev

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main/WillNorris - 25 Oct 2003


Ultima versione: r1.1 - 25 Oct 2003 - 09:04 - Main.guest
 
Se riconosciuto dal sistema come utente: Main.guest