[TemplateTag].Name

Version: - string  

Summary

Returns the name of the custom product field.

Settings

The value is based on the Name input field in the Product field section in Management center.

(Management Center - Ecommerce - Product catalog - Product fields - General - Settings - Name)

Examples

Outputting the template tag

@GetString("[TemplateTag].Name")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("[TemplateTag].Name"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("[TemplateTag].Name"); }

Outputting the template tag

<!--@[TemplateTag].Name-->

Check if string has a value

<!--@If Defined(@[TemplateTag].Name)--> Let's output this tag here: <strong><!--@[TemplateTag].Name--></strong> <!--@EndIf(@[TemplateTag].Name)-->