ItemPublisher:Items.Paging.CurrentPage

Version: - integer  

Summary

Returns the number of the current page.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("ItemPublisher:Items.Paging.CurrentPage")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("ItemPublisher:Items.Paging.CurrentPage"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("ItemPublisher:Items.Paging.CurrentPage"); }

Outputting the template tag

<!--@ItemPublisher:Items.Paging.CurrentPage-->

Check if integer has a value

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