Ecom:Group.ShowInSiteMap

Version: - boolean  

Summary

Returns True if the group is enabled to be visible in the sitemap.

Settings

The value is based on the Show in sitemap button for a group.

(Ecommerce > Product Catalog > Shop > Group > Navigation > Show in sitemap)

Examples

Outputting the template tag

@GetBoolean("Ecom:Group.ShowInSiteMap")

Check if tag has a value

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

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Ecom:Group.ShowInSiteMap"); }

Outputting the template tag

<!--@Ecom:Group.ShowInSiteMap-->

Check if boolean has a value

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