ItemPublisher:Item.[ItemFieldSystemName].Options.Image

Version: -  

Summary

Returns the path and a file name of an 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

@GetObject("ItemPublisher:Item.[ItemFieldSystemName].Options.Image")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("ItemPublisher:Item.[ItemFieldSystemName].Options.Image"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("ItemPublisher:Item.[ItemFieldSystemName].Options.Image"); }

Outputting the template tag

<!--@ItemPublisher:Item.[ItemFieldSystemName].Options.Image-->

Check if object has a value

<!--@If Defined(@ItemPublisher:Item.[ItemFieldSystemName].Options.Image)--> Let's output this tag here: <strong><!--@ItemPublisher:Item.[ItemFieldSystemName].Options.Image--></strong> <!--@EndIf(@ItemPublisher:Item.[ItemFieldSystemName].Options.Image)-->