Item.Page.Field
Version: - stringSummary
Returns 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.Field")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Item.Page.Field"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Item.Page.Field");
}
Outputting the template tag
<!--@Item.Page.Field-->
Check if string has a value
<!--@If Defined(@Item.Page.Field)-->
Let's output this tag here: <strong><!--@Item.Page.Field--></strong>
<!--@EndIf(@Item.Page.Field)-->