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