Ecom:CatalogPublishing.ProductsExist

Version: - boolean  

Summary

Returns True when the catalog publishing list contains product.

Settings

The value is generated automatically.

Remarks

The tag is not rendered if the list doesn't contain any products.

Examples

Outputting the template tag

@GetBoolean("Ecom:CatalogPublishing.ProductsExist")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:CatalogPublishing.ProductsExist"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Ecom:CatalogPublishing.ProductsExist"); }

Outputting the template tag

<!--@Ecom:CatalogPublishing.ProductsExist-->

Check if boolean has a value

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