Ecom:ProductList.PageSize
Version: - stringSummary
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)
Examples
Outputting the template tag
@GetString("Ecom:ProductList.PageSize")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:ProductList.PageSize"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:ProductList.PageSize");
}
Outputting the template tag
<!--@Ecom:ProductList.PageSize-->
Check if string has a value
<!--@If Defined(@Ecom:ProductList.PageSize)-->
Let's output this tag here: <strong><!--@Ecom:ProductList.PageSize--></strong>
<!--@EndIf(@Ecom:ProductList.PageSize)-->