UserManagement:User.UserName

Version: - string  

Summary

Returns the user name of a user.

Settings

The value is based on the User name input field for a user.

(User Management > User > User tab > User info panel > User name)

Examples

Outputting the template tag

@GetString("UserManagement:User.UserName")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("UserManagement:User.UserName"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("UserManagement:User.UserName"); }

Outputting the template tag

<!--@UserManagement:User.UserName-->

Check if string has a value

<!--@If Defined(@UserManagement:User.UserName)--> Let's output this tag here: <strong><!--@UserManagement:User.UserName--></strong> <!--@EndIf(@UserManagement:User.UserName)-->