Item.[FieldSystemName].Image
Version: - stringSummary
Returns the path and a file name of the icon selected 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("Item.[FieldSystemName].Image")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Item.[FieldSystemName].Image"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Item.[FieldSystemName].Image");
}
Outputting the template tag
<!--@Item.[FieldSystemName].Image-->
Check if string has a value
<!--@If Defined(@Item.[FieldSystemName].Image)-->
Let's output this tag here: <strong><!--@Item.[FieldSystemName].Image--></strong>
<!--@EndIf(@Item.[FieldSystemName].Image)-->