Page:Ecom.ProductList.PageSize

Version: - integer  

Summary

Returns the number of products per page.

Settings

The value is based on the Products per page field in the product catalog module settings.

(Page - Paragraph - Module - Display - Products per page)

Remarks

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

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if integer has a value

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