Global:Extranet.UserName

globalvalue  

Summary

Returns the user name for the extranet/intranet 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

@GetGlobalValue("Global:Extranet.UserName")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:Extranet.UserName"); }

Outputting the template tag

<!--@Global:Extranet.UserName-->

Check if globalvalue has a value

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