DwAreaFirstActivePageID
Version: - integerSummary
Returns the ID for the first active page (published + non-hidden) on the current website.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetInteger("DwAreaFirstActivePageID")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("DwAreaFirstActivePageID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("DwAreaFirstActivePageID");
}
Outputting the template tag
<!--@DwAreaFirstActivePageID-->
Check if integer has a value
<!--@If Defined(@DwAreaFirstActivePageID)-->
Let's output this tag here: <strong><!--@DwAreaFirstActivePageID--></strong>
<!--@EndIf(@DwAreaFirstActivePageID)-->