CustomField.Name

Version: - string  

Summary

Returns the name of the custom field.

Settings

he value is based on the Name field in the custom fields management of the module.

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

Examples

Outputting the template tag

@GetString("CustomField.Name")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("CustomField.Name"); }

Outputting the template tag

<!--@CustomField.Name-->

Check if string has a value

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