qualification:hasQualified
Returns true if the given article is a favorite of User. If userId is empty, the loggedin user is used.
<qual:hasQualified type="favorite" id="isFavorite"/> <logic:equal name="isFavorite" value="false"> Add to favorites </logic:equal>
Syntax
<qualification:hasQualified articleId="..."? id="..."? name="..."? type="..." userId="..."?> ... </qualification:hasQualified>
Attributes
id
, no runtime expressionsName of the scripting-variable.
name
Name of the scripting-variable where to get the article or user information from. This must be an PresentationUser, PresentationPerson, Person, PresentationArticle or Article object.
userId
The ID of the user
articleId
The id of the article to check if it is a favorite of the user. Default it get the article from the scope.
type
, mandatoryThe type of qualification you want to get. StarRating, Flagging, Favorite This is from Glenn at TV2