ItemPublisher:Item.[ItemFieldSystemName].Control

Version: - string  

Summary

Returns the html code snippet for the input field for the item type field if Allow editing of items is enabled in Item Publisher module settings. Example of the value:

<input type="text" class="std item-field " name="[Item field system name]" maxlength="255" value="[Item field default text]" />

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("ItemPublisher:Item.[ItemFieldSystemName].Control")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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