DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:rating

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:rating [2015-04-19 15:46] CRplugin:rating [2018-12-07 10:13] (current) – [Rating Plugin] Barbara
Line 6: Line 6:
 email      : gohr@cosmocode.de email      : gohr@cosmocode.de
 type       : syntax, action type       : syntax, action
-lastupdate : 2015-02-19+lastupdate : 2016-01-13
 compatible : Hrun compatible : Hrun
 depends    : sqlite depends    : sqlite
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : +tags       : rate, rating, vote, poll
  
 downloadurl: https://github.com/cosmocode/dokuwiki-plugin-rating/zipball/master downloadurl: https://github.com/cosmocode/dokuwiki-plugin-rating/zipball/master
Line 21: Line 21:
 ---- ----
  
-[[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 30: Line 30:
 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. 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.
  
-===== Examples/Syntax =====+Then adjust your template and integrate the following code where you want the rating controls to appear:
  
-FIXME Instructions on how to insert this plugin into template missing.+<code php> 
 +<?php 
 +$rating = plugin_load('helper', 'rating'); 
 +if($rating) $rating->tpl(); 
 +?> 
 +</code> 
 + 
 +===== 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 ''<nowiki>{{rating}}</nowiki>'' will create a list of the ten best rated pages. Inserting the tag ''<nowiki>{{rating}}</nowiki>'' will create a list of the ten best rated pages.
plugin/rating.1429451179.txt.gz · Last modified: 2015-04-19 15:46 by CR

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