Table of Contents
Rating Plugin
Compatible with DokuWiki
Hrun
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Installation
External requirements: This plugin requires the following additional components that must be installed separately:
Install the plugin using the Extension Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Then adjust your template and integrate the following code where you want the rating controls to appear:
<?php $rating = plugin_load('helper', 'rating'); if($rating) $rating->tpl(); ?>
Examples/Syntax
Be sure to have integrated the plugin into your template as described above. Syntax is only available for outputting aggregated data. Data input is handled through template integration only.
Inserting the tag {{rating}}
will create a list of the ten best rated pages.
{{rating}} {{rating|startdate=2014-07-01}} {{rating|lang=en}} {{rating|startdate=2014-07-01,lang=en}}
lang
If you have the translation plugin installed you can filter the pages by language:
{{rating|lang=$langprefix}}
startdate
You can specify the starting-date from which the rating is computed. The Format for is YYYY-MM-DD
.
{{rating|startdate=$startdate}}
list items
By default the list uses bullet points, which can be changed to a numbered list by adding the tag=ol
option:
{{rating|tag=ol}}
score
You can show the score of each item by adding the score=true
option:
{{rating|score=true}}
Development
Change Log
- Merge pull request #13 from dokuwiki-translate/lang_update_407_164562… (2022-02-23 15:53)
- translation update (2022-02-23 15:20)
- Merge pull request #9 from dryoo/patch-1 (2016-06-27 23:41)
- ignore actions triggered by bots (2016-01-13 11:39)
- Merge pull request #2 from micgro42/syntaxEnhance (2015-02-19 16:12)
- Add syntax option for listtype, score and hide non-existing pages (2015-02-19 15:46)
- fixed compatibility with older php versions (2015-02-19 14:35)
- Merge pull request #1 from micgro42/extendSyntax (2015-02-19 14:28)
Known Bugs and Issues
Please report bugs and issues at: https://github.com/cosmocode/dokuwiki-plugin-rating/issues