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