Ecom:Group.ShowInMenu
Version: - booleanSummary
Returns True if the group is enabled to be visible in the navigation.
Settings
The value is based on the Show in menu button for a group.
(Ecommerce > Product Catalog > Shop > Group > Navigation > Show in menu)
Examples
Outputting the template tag
@GetBoolean("Ecom:Group.ShowInMenu")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:Group.ShowInMenu"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("Ecom:Group.ShowInMenu");
}
Outputting the template tag
<!--@Ecom:Group.ShowInMenu-->
Check if boolean has a value
<!--@If Defined(@Ecom:Group.ShowInMenu)-->
Let's output this tag here: <strong><!--@Ecom:Group.ShowInMenu--></strong>
<!--@EndIf(@Ecom:Group.ShowInMenu)-->