Rating
Version: - integerSummary
Returns the specific rating submitted by the visitor.
Settings
The value is based on the Rating field for the comment.
(Frontend comments form or Modules tab > News > Category > News > Content > Comments > Comment > Rating)
Examples
Outputting the template tag
@GetInteger("Rating")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Rating"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Rating");
}
Outputting the template tag
<!--@Rating-->
Check if integer has a value
<!--@If Defined(@Rating)-->
Let's output this tag here: <strong><!--@Rating--></strong>
<!--@EndIf(@Rating)-->