ItemCreator:Edit.Item.Field.Option.Image
Version: - booleanSummary
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
@GetBoolean("ItemCreator:Edit.Item.Field.Option.Image")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("ItemCreator:Edit.Item.Field.Option.Image"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("ItemCreator:Edit.Item.Field.Option.Image");
}
Outputting the template tag
<!--@ItemCreator:Edit.Item.Field.Option.Image-->
Check if boolean has a value
<!--@If Defined(@ItemCreator:Edit.Item.Field.Option.Image)-->
Let's output this tag here: <strong><!--@ItemCreator:Edit.Item.Field.Option.Image--></strong>
<!--@EndIf(@ItemCreator:Edit.Item.Field.Option.Image)-->