Custom.AccessUser_[UserCustomFieldSystemName].Name

Version: - string  

Summary

Returns the name of the user custom field.

Settings

The value is based on the Name field in the custom fields management.

(Management Center > Modules > User Management > Edit custom fields)

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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