DWextranet_AccessUserUserName

Version: -  

Summary

Returns the user name of the current Extranet user.

Settings

The value is taken from the Telephone field in the user's settings.
(Users > User > Information tab > Information panel)

Remarks

This requires that the user is logged on through the extranet module.

Examples

Outputting the template tag

@GetObject("DWextranet_AccessUserUserName")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("DWextranet_AccessUserUserName"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("DWextranet_AccessUserUserName"); }

Outputting the template tag

<!--@DWextranet_AccessUserUserName-->

Check if object has a value

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