Item.Field
Version: - stringSummary
Return the content of the item field.
Settings
The value is based on the value in the item field.
Examples
Outputting the template tag
@GetString("Item.Field")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Item.Field"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Item.Field");
}
Outputting the template tag
<!--@Item.Field-->
Check if string has a value
<!--@If Defined(@Item.Field)-->
Let's output this tag here: <strong><!--@Item.Field--></strong>
<!--@EndIf(@Item.Field)-->