Forum:Thread.Replies.Count
Version: - integerSummary
Returns a count of the number of replies in a forum thread.
Settings
The value is generated automatically.
Remarks
Available for ContentAppIndexProviders with content has Forum module only.
Examples
Outputting the template tag
@GetInteger("Forum:Thread.Replies.Count")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Forum:Thread.Replies.Count"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Forum:Thread.Replies.Count");
}
Outputting the template tag
<!--@Forum:Thread.Replies.Count-->
Check if integer has a value
<!--@If Defined(@Forum:Thread.Replies.Count)-->
Let's output this tag here: <strong><!--@Forum:Thread.Replies.Count--></strong>
<!--@EndIf(@Forum:Thread.Replies.Count)-->