ItemPublisher:Global.PagingPosition
Version: - integerSummary
Returns the number of the current page according to paging position.
Settings
The value is generated automatically.
Remarks
Returns "1"
if there's no paging.
Examples
Outputting the template tag
@GetInteger("ItemPublisher:Global.PagingPosition")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("ItemPublisher:Global.PagingPosition"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("ItemPublisher:Global.PagingPosition");
}
Outputting the template tag
<!--@ItemPublisher:Global.PagingPosition-->
Check if integer has a value
<!--@If Defined(@ItemPublisher:Global.PagingPosition)-->
Let's output this tag here: <strong><!--@ItemPublisher:Global.PagingPosition--></strong>
<!--@EndIf(@ItemPublisher:Global.PagingPosition)-->