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