ItemCreator:Edit.Item.[FieldSysName].Option.Label

Version: - string  

Summary

Returns the label of the option.

Settings

The value is based on the label of the option.

(Management Center - Item Types - [Item Type] - Field - Options - Label)

Examples

Outputting the template tag

@GetString("ItemCreator:Edit.Item.[FieldSysName].Option.Label")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("ItemCreator:Edit.Item.[FieldSysName].Option.Label"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("ItemCreator:Edit.Item.[FieldSysName].Option.Label"); }

Outputting the template tag

<!--@ItemCreator:Edit.Item.[FieldSysName].Option.Label-->

Check if string has a value

<!--@If Defined(@ItemCreator:Edit.Item.[FieldSysName].Option.Label)--> Let's output this tag here: <strong><!--@ItemCreator:Edit.Item.[FieldSysName].Option.Label--></strong> <!--@EndIf(@ItemCreator:Edit.Item.[FieldSysName].Option.Label)-->