Skip to content

RatedPages Module

Documentation > Modules > RatedPages Module

Description

Displays top-rated pages. Also a category can be specified to limit the results.

This module is under development and not yet complete.

But should work as described below.

Attributes

attributerequiredallowed valuesdefaultdescription
categorynovalid category namenonelimits reported pages to a single category
orderno"date-created-asc", "date-created-desc", "rating-asc", "rating-desc""rating-desc"
minRatingnointegernonelimits the results to the pages having rating equal or above this limit
maxRatingnointegernonelimits the results to the pages having rating equal or below this limit
limitnopositive integer10limits number of displayed pages
commentsno"true"/"yes"nonedisplay number of comments too

Examples

Display top-rated pages from the category rateit

[[module RatedPages category="rateit" limit="20" comments="true" minRating="0"]]

Display "most hated" pages:

[[module RatedPages category="rateit" order="rate-asc" limit="20" comments="true" maxRating="-1"]]

Display new submissions:

[[module RatedPages category="rateit" order="date-created-desc" limit="20" comments="true"]]