Ratings Application

Version 44.2 by Victor Rachieru on 2015/02/10 13:22

starRate Wiki pages, and browse them by average ratings
TypeXAR
Category
Developed by

XWiki Development Team

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Success

Installable with the Extension Manager

Description

This app allows users to rate Wiki pages.

Screenshots

RatingsApplication.png

@Since 6.4

 

Information

This extension's sources have been integrated into a module of the xwiki-platform. Thus the jump in the version number.

UI Extension point

The javascript that injected the ratings html after the breadcrumb (id="hierarchy") has been replaced by a UI Extension Point.
This change has the advantage that it allows ratings to be displayed in the flamingo skin.
The problem with the old approach was that in flamingo there is no html element with the id "hierarchy".

Ratings are disabled by default

By default, the ratings are disabled.
You can activate them either globally or at space level.
Please see below how to do that.

New configuration source

As opposed to the older versions, since 6.4 the ratings configuration can now be done via XWiki objects.
This means that it is possible to configure the application on a space basis.

The main configuration source is located at XWiki.RatingsConfig and in order to have separate configurations for each space you need to attach a XWiki.RatingsConfigClass object to the WebPreferences document of that space. Unfortunately, at the moment there is no UI for editing the configuration so it has to be done by editing the objects manually.

A important thing to note is that a fallback to xwiki.[cfg|preferences] has been kept.

The precedence order is as follows:

  1. *.WebPreferences
  2. XWiki.RatingsConfig
  3. xwiki.cfg
  4. xwiki.preferences

XWiki.RatingsConfigClass

PropertyDescriptionValuesDefault
displayRatingsDisplay the ratings or notbooleantrue
excludedPagesPages on which ratings should not be displayedcomma separated list of documents-
managerHintThe ratings manager to usedefault,separatedefault
storageSpaceIn case of using the separate ratings manager, specify in which space to save the rating informationspace name-
storageSeparateSpacesStore the ratings for each space individually (only takes effect at global level, on space level use storageSpace)booleanfalse
storeAverageRatingStore the average rating in an object or keep it in memorybooleanfalse
reputationCalculate the user's reputationbooleanfalse
reputationStoredStore the user reputation in an object or keep it in memorybooleanfalse
reputationMethodName of the methods used for calculating a user's reputationcomma separated list of values-
reputationAlgorithmThe algorithm used to calculate the reputationdefault,simple,customdefault
reputationCustomAlgorithmWhen the reputationAlgorithm property is set to "custom" a reference to the algorithm must be providedDocument containing the groovy script-

Prerequisites & Installation Instructions

  • For 1.3+
    • Install using Extension Manager
  • For 1.1. and 1.2 only
    • This application relies on the Ratings Plugin. Please make sure you have successfully installed this plugin first.
    • Add XWiki.RatingsTranslations as an internationalization document bundle
    • Visit the Ratings section of the administration UI to activate or deactivate ratings

Release Notes

v6.4

v1.3.2

v1.3

  • Installs automatically using Extension Manager
  • Tested with XWiki 4.5

Dependencies

Dependencies for this extension (org.xwiki.platform:xwiki-platform-ratings-ui 6.4):

  • org.xwiki.contrib.ratings:application-ratings-api 1.3
  • org.xwiki.contrib.ratings:application-ratings-api 1.3.1
  • org.xwiki.contrib.ratings:application-ratings-api 1.3.2
  • org.xwiki.platform:xwiki-platform-ratings-api 6.4
  • org.xwiki.contrib.ratings:application-ratings-api 1.3.3

Get Connected