Ecom:FieldDisplayGroup.Field.TemplateTag

Version: 9.7.0 string  

Summary

Returns Tag name for the field. 

Settings

The value is available for Product Custom and Product Category fields only.

Examples

Outputting the template tag

@GetString("Ecom:FieldDisplayGroup.Field.TemplateTag")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:FieldDisplayGroup.Field.TemplateTag"); }

Outputting the template tag

<!--@Ecom:FieldDisplayGroup.Field.TemplateTag-->

Check if string has a value

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