qualification:ranking
The prefered way of using this tag is as follows:
<% Calendar calendar = Calendar.getInstance(); calendar.set(2009, 0, 01); Date fromDate = calendar.getTime(); calendar.set(2009, 05, 20); Date toDate = calendar.getTime(); %> <qual:ranking id="myRanking" type="StarRating" includeArticleTypes="blog, essay" from="<%= fromDate %>" to="<%= toDate %>" max="5" />
You may also use the userIds
parameter to
pass the IDs (seperated with comma) of the users you want
ranking information from.
The old way of using the tag with composing a comma seperated
list of article IDs enclosed in brackets and passing it to the
articleId
parameter is deprecated.
Syntax
<qualification:ranking articleId="..."? articleIds="..."? from="..."? id="..." includeArticleTypes="..."? max="..."? sort="..."? to="..."? type="..." userIds="..."?/>
Attributes
id
, mandatory, no runtime expressionsName of the scripting-variable.
articleId
Deprecated, see tag description.
articleIds
Attribute accepts ',' separated String of article Ids.
includeArticleTypes
Comma separated list of article type IDs.
userIds
Comma separated list of user IDs.
type
, mandatoryStarRating
from
Expects a java.util.Date object from when the first ranking of the returned list was made.
to
Expects a java.util.Date object from when the last ranking of the returned list was made.
sort
Property on which sorting should be done. Valid values are: {averageRank,lastRanked,totalVotes}. Any of the values can be prefixed with a '+' or '-' to indicate ascending or descending sort. If no prefix is present, the default sort order is descending.
max
max items to return