DWUsers:User:Department

Version: - string  

Summary

Returns the Department of an extranet user.

Settings

The value is based on the Department input field in the User details section for the user.

Examples

Outputting the template tag

@GetString("DWUsers:User:Department")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("DWUsers:User:Department"); }

Outputting the template tag

<!--@DWUsers:User:Department-->

Check if string has a value

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