plugin:rating
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:rating [2015-02-17 16:38] – [Syntax] grosse | plugin:rating [2018-12-07 10:13] (current) – [Rating Plugin] Barbara | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
Line 6: | Line 6: | ||
email : gohr@cosmocode.de | email : gohr@cosmocode.de | ||
type : syntax, action | type : syntax, action | ||
- | lastupdate : 2014-10-08 | + | lastupdate : 2016-01-13 |
compatible : Hrun | compatible : Hrun | ||
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : | + | tags : |
downloadurl: | downloadurl: | ||
Line 21: | Line 21: | ||
---- | ---- | ||
- | [[http:// | + | [[https:// |
===== Installation ===== | ===== Installation ===== | ||
Line 30: | Line 30: | ||
Install the plugin using the [[plugin: | Install the plugin using the [[plugin: | ||
- | ===== Examples/ | + | Then adjust your template and integrate the following code where you want the rating controls to appear: |
- | //TBD// | + | <code php> |
+ | <?php | ||
+ | $rating = plugin_load(' | ||
+ | if($rating) $rating-> | ||
+ | ?> | ||
+ | </code> | ||
+ | ===== Examples/ | ||
+ | |||
+ | 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. | ||
- | ===== Syntax ===== | ||
Inserting the tag ''< | Inserting the tag ''< | ||
<code wiki> | <code wiki> | ||
{{rating}} | {{rating}} | ||
- | {{rating|lang=de}} | ||
{{rating|startdate=2014-07-01}} | {{rating|startdate=2014-07-01}} | ||
+ | {{rating|lang=en}} | ||
+ | {{rating|startdate=2014-07-01, | ||
</ | </ | ||
- | ===== Configuration and Settings | + | ==== lang ==== |
+ | If you have the [[plugin: | ||
+ | <code wiki> | ||
+ | {{rating|lang=$langprefix}} | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== startdate ==== | ||
+ | You can specify the starting-date from which the rating is computed. The Format for is '' | ||
+ | <code wiki> | ||
+ | {{rating|startdate=$startdate}} | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== list items ==== | ||
+ | By default the list uses bullet points, which can be changed to a numbered list by adding the '' | ||
+ | < | ||
- | //TBD// | + | ==== score ==== |
+ | You can show the score of each item by adding the '' | ||
+ | < | ||
===== Development ===== | ===== Development ===== |
plugin/rating.1424187498.txt.gz · Last modified: 2015-02-17 16:38 by grosse