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

Version: - string  

Summary

Returns the value of the option.

Settings

The value is based on the value of the option.

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

Examples

Outputting the template tag

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

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("ItemCreator:Edit.Item.[FieldSysName].Option.Value"))) { @* 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.Value"); }

Outputting the template tag

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

Check if string has a value

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