ItemPublisher:Global.PagingPosition

Version: -  

Summary

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

@GetObject("ItemPublisher:Global.PagingPosition")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("ItemPublisher:Global.PagingPosition"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("ItemPublisher:Global.PagingPosition"); }

Outputting the template tag

<!--@ItemPublisher:Global.PagingPosition-->

Check if object has a value

<!--@If Defined(@ItemPublisher:Global.PagingPosition)--> Let's output this tag here: <strong><!--@ItemPublisher:Global.PagingPosition--></strong> <!--@EndIf(@ItemPublisher:Global.PagingPosition)-->