Product.CustomField.Label

Version: - string  

Summary

Returns translated option label for the current field.

Settings

Field gives the translated option label, if the current field is a List field, otherwise it just gives the same value as the Product.CustomField.Value template tag.

Examples

Outputting the template tag

@GetString("Product.CustomField.Label")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Product.CustomField.Label-->

Check if string has a value

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