DWUsers:User:Name
Version: - stringSummary
Returns the Name of an extranet user.
Settings
The value is based on the Name input field in the User details section for the user.
Examples
Outputting the template tag
@GetString("DWUsers:User:Name")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DWUsers:User:Name"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DWUsers:User:Name");
}
Outputting the template tag
<!--@DWUsers:User:Name-->
Check if string has a value
<!--@If Defined(@DWUsers:User:Name)-->
Let's output this tag here: <strong><!--@DWUsers:User:Name--></strong>
<!--@EndIf(@DWUsers:User:Name)-->