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