Forum:LastThread.Author.Group.ID
Version: - integerSummary
Returns user group ID the author of last thread belongs to.
Settings
The value is taken from the ID field of the user category in the Users module settings.
Examples
Outputting the template tag
@GetInteger("Forum:LastThread.Author.Group.ID")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Forum:LastThread.Author.Group.ID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Forum:LastThread.Author.Group.ID");
}
Outputting the template tag
<!--@Forum:LastThread.Author.Group.ID-->
Check if integer has a value
<!--@If Defined(@Forum:LastThread.Author.Group.ID)-->
Let's output this tag here: <strong><!--@Forum:LastThread.Author.Group.ID--></strong>
<!--@EndIf(@Forum:LastThread.Author.Group.ID)-->