Custom.AccessUser_[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])

Examples

Outputting the template tag

@GetString("Custom.AccessUser_[UserCustomFieldSystemName]")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Custom.AccessUser_[UserCustomFieldSystemName]"); }

Outputting the template tag

<!--@Custom.AccessUser_[UserCustomFieldSystemName]-->

Check if string has a value

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