Ecom:Product:RelatedGroup.Name
Version: - stringSummary
Returns the name of the related group.
Settings
The value is based on the Name
input field for a related group listed on the Related Products
page.
Examples
Outputting the template tag
@GetString("Ecom:Product:RelatedGroup.Name")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product:RelatedGroup.Name"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product:RelatedGroup.Name");
}
Outputting the template tag
<!--@Ecom:Product:RelatedGroup.Name-->
Check if string has a value
<!--@If Defined(@Ecom:Product:RelatedGroup.Name)-->
Let's output this tag here: <strong><!--@Ecom:Product:RelatedGroup.Name--></strong>
<!--@EndIf(@Ecom:Product:RelatedGroup.Name)-->