UserManagement:User.[UserCustomFieldSystemName]

Version: - string  

Summary

Returns the content of the user custom field.

Settings

The value is based on the custom user field for a user.

(User Management > User > User tab > Custom fields panel >[Custom field])

Remarks

Type depends on the item field type.

Examples

Outputting the template tag

@GetString("UserManagement:User.[UserCustomFieldSystemName]")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("UserManagement:User.[UserCustomFieldSystemName]"); }

Outputting the template tag

<!--@UserManagement:User.[UserCustomFieldSystemName]-->

Check if string has a value

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