Ecom:CatalogPublishing.UseCatalogPublishing

Version: - boolean  

Summary

Returns True if Catalog Publishing is enabled in module settings.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetBoolean("Ecom:CatalogPublishing.UseCatalogPublishing")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if boolean has a value

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