Ecom:CatalogPublishing.ProductCount
Version: - stringSummary
Returns product count in the product Publisher List.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("Ecom:CatalogPublishing.ProductCount")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:CatalogPublishing.ProductCount"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:CatalogPublishing.ProductCount");
}
Outputting the template tag
<!--@Ecom:CatalogPublishing.ProductCount-->
Check if string has a value
<!--@If Defined(@Ecom:CatalogPublishing.ProductCount)-->
Let's output this tag here: <strong><!--@Ecom:CatalogPublishing.ProductCount--></strong>
<!--@EndIf(@Ecom:CatalogPublishing.ProductCount)-->