DwPageStatusText
Version: - stringSummary
Returns the status bar text of the current page.
Settings
The value comes from the Status bar text field for the page.
(Page > General tab > Navigation item panel)
Remarks
In order to use the status bar text, this must be enabled in the Dynamicweb Control Panel
Examples
Outputting the template tag
@GetString("DwPageStatusText")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DwPageStatusText"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DwPageStatusText");
}
Outputting the template tag
<!--@DwPageStatusText-->
Check if string has a value
<!--@If Defined(@DwPageStatusText)-->
Let's output this tag here: <strong><!--@DwPageStatusText--></strong>
<!--@EndIf(@DwPageStatusText)-->