ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal
Version: -Summary
Returns True if the page is the last page.
Settings
The value is generated automatically.
Remarks
The values of “ItemPublisher:Items.Paging.PagesX.Page.IsFirstPageGlobal
” and “ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal
” are different depending on whether the current range starts with the first page or whether the current range ends with the last page.
Examples
Outputting the template tag
@GetObject("ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal")
Check if tag has a value
@if(!var.IsNullOrWhiteSpace(GetObject("ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
var storedTag = GetObject("ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal");
}
Outputting the template tag
<!--@ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal-->
Check if object has a value
<!--@If Defined(@ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal)-->
Let's output this tag here: <strong><!--@ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal--></strong>
<!--@EndIf(@ItemPublisher:Items.Paging.PagesX.Page.IsLastPageGlobal)-->