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

Version: - string  

Summary

Returns the path and a file name of the icon used for the option.

Settings

The value is based on the name of the icon, that is selected for the option.

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

Examples

Outputting the template tag

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

Check if tag has a value

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

Outputting the template tag

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

Check if string has a value

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