Forum:Global.User.Name

Version: - string  

Summary

Returns username of the currently logged in Extranet user.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Forum:Global.User.Name")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Forum:Global.User.Name"); }

Outputting the template tag

<!--@Forum:Global.User.Name-->

Check if string has a value

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