DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:top

Top Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin Show the top most visited pages

Last updated on
2017-03-24
Provides
Syntax, Action
Repository
Source
Requires
sqlite

Similar to accscounter

Tagged with statistics

A CosmoCode Plugin

Installation

:!: External requirements: This plugin requires the following additional components that must be installed separately:

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples/Usage

Show the top ten visted pages of all time:

{{top}}

Show the top ten visted pages of all time in the english namespace (if the translation plugin is installed):

{{top|lang=en}}

Show the top ten visted pages since (and including) January 2014:

{{top|month=201401}}

Show the top ten visted pages since (and including) January 2014 in the english namespace (if the translation plugin is installed):

{{top|month=201401,lang=en}}

Syntax

Inserting the tag {{top}} will create a list of the top ten most visited pages.

{{top[|[lang=$langprefix[,]][month=$startmonth[,]][tag=ol[,]][score=true]}}

It includes four options.

lang

If you have the translation plugin installed you can filter the pages by language:

{{top|lang=$langprefix}}

month

You can specify the month from which the number of visits is computed with the month option. The Format for the month is YYYYMM.

{{top|month=$startmonth}}

list items

By default the list uses bullet points, which can be changed to a numbered list by adding the tag=ol option:

{{top|tag=ol}}

score

You can show the score of each item by adding the score=true option:

{{top|score=true}}

or for example as a numbered list

{{top|tag=ol,score=true}}

Troubleshooting

If top displays nothing

Restricted to publicly-accessible pages?

Check plugin»top»show_only_public setting; if enabled, but you have no publicly-accessible pages in your wiki, you will see nothing. This is expected behaviour.

Development

Change Log

Known Bugs and Issues

plugin/top.txt · Last modified: 2021-10-15 05:25 by goldseed

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki