ItemPublisher:Item.Field.Control

Version: - string  

Summary

Returns control type of the item field, based on the Type filed in the item field definition.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("ItemPublisher:Item.Field.Control")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("ItemPublisher:Item.Field.Control"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("ItemPublisher:Item.Field.Control"); }

Outputting the template tag

<!--@ItemPublisher:Item.Field.Control-->

Check if string has a value

<!--@If Defined(@ItemPublisher:Item.Field.Control)--> Let's output this tag here: <strong><!--@ItemPublisher:Item.Field.Control--></strong> <!--@EndIf(@ItemPublisher:Item.Field.Control)-->