Ecom:ProductList:Page.GroupID

Version: - string  

Summary

Returns the product group ID.

Settings

The value is generated automatically.

Remarks

The value is rendered if the product is rendered by the group ID.

Examples

Outputting the template tag

@GetString("Ecom:ProductList:Page.GroupID")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:ProductList:Page.GroupID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:ProductList:Page.GroupID"); }

Outputting the template tag

<!--@Ecom:ProductList:Page.GroupID-->

Check if string has a value

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