Table of Contents
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
Similar to accscounter
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
- Merge pull request #19 from cosmocode/feed (2020-11-25 11:50)
- Apply ACL checks in feed (2020-11-24 20:44)
- Use default page info in feed (2020-11-24 20:43)
- Update test requirements (2020-11-24 15:41)
- Update Travis CI config (2020-11-24 15:35)
- Make top pages available via DokuWiki's feed (2020-11-24 15:03)
- PSR-2 code reformatting (2020-11-24 13:17)
- Merge pull request #11 from arourke/patch-1 (2017-03-24 19:13)
Known Bugs and Issues
Please report bugs and issues at: https://github.com/cosmocode/dokuwiki-plugin-top/issues