DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:top

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:top [2015-02-23 09:17] grosseplugin:top [2021-10-15 05:25] (current) goldseed
Line 1: Line 1:
-====== top Plugin ======+====== Top Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: show the top most visited pages+description: Show the top most visited pages
 author     : Andreas Gohr author     : Andreas Gohr
 email      : gohr@cosmocode.de email      : gohr@cosmocode.de
 type       : action, syntax type       : action, syntax
-lastupdate : 2015-02-19 +lastupdate : 2017-03-24 
-compatible : Hrun+compatible : Detritus, Hrun, Hogfather
 depends    : sqlite depends    : sqlite
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : +tags       : statistics
  
 downloadurl: https://github.com/cosmocode/dokuwiki-plugin-top/zipball/master downloadurl: https://github.com/cosmocode/dokuwiki-plugin-top/zipball/master
Line 20: Line 20:
 screenshot_img :  screenshot_img : 
 ---- ----
-[[http://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]+[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
  
 ===== Installation ===== ===== Installation =====
Line 27: Line 27:
   * [[plugin:sqlite|sqlite plugin]]   * [[plugin:sqlite|sqlite plugin]]
  
-Install the plugin using the [[plugin:extension|Extension Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 47: Line 47:
 Inserting the tag ''<nowiki>{{top}}</nowiki>'' will create a list of the top ten most visited pages. Inserting the tag ''<nowiki>{{top}}</nowiki>'' will create a list of the top ten most visited pages.
 <code wiki> <code wiki>
-{{top[|[lang=$langprefix[,]][month=$startmonth]}}+{{top[|[lang=$langprefix[,]][month=$startmonth[,]][tag=ol[,]][score=true]}}
 </code> </code>
  
-It includes two options.+It includes four options.
  
 ==== lang ==== ==== lang ====
Line 73: Line 73:
 ==== score ==== ==== score ====
 You can show the score of each item by adding the ''score=true'' option: You can show the score of each item by adding the ''score=true'' option:
-<code>{{tag|score=true}}</code>+<code>{{top|score=true}}</code>  
 +or for example as a numbered list  
 +<code>{{top|tag=ol,score=true}}</code>
  
 +===== 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 ===== ===== Development =====
plugin/top.1424679441.txt.gz · Last modified: 2015-02-23 09:17 by grosse

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