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