Page:Ecom.ProductList.TotalPages

Version: - integer  

Summary

Returns the total number of pages.

Settings

The value is generated automatically.

Remarks

The tag is rendered when the Product Catalog module is available on the page.

Examples

Outputting the template tag

@GetInteger("Page:Ecom.ProductList.TotalPages")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Page:Ecom.ProductList.TotalPages"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Page:Ecom.ProductList.TotalPages"); }

Outputting the template tag

<!--@Page:Ecom.ProductList.TotalPages-->

Check if integer has a value

<!--@If Defined(@Page:Ecom.ProductList.TotalPages)--> Let's output this tag here: <strong><!--@Page:Ecom.ProductList.TotalPages--></strong> <!--@EndIf(@Page:Ecom.ProductList.TotalPages)-->