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