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