DwTopPageName
Version: - stringSummary
Returns the name of the top page in the current path (ParentID=0).
Settings
The value comes from the Page name field for the page.
(Page > General tab > Navigation item panel)
Examples
Outputting the template tag
@GetString("DwTopPageName")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DwTopPageName"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DwTopPageName");
}
Outputting the template tag
<!--@DwTopPageName-->
Check if string has a value
<!--@If Defined(@DwTopPageName)-->
Let's output this tag here: <strong><!--@DwTopPageName--></strong>
<!--@EndIf(@DwTopPageName)-->