Ecom:CustomField.Template
Version: - stringSummary
Returns the template tag for the custom product field.
Settings
The value is based on the Template Tag field under the product field settings.
(Management Center > Ecommerce > Product catalog > Product fields > Product field > Template Tag)
Examples
Outputting the template tag
@GetString("Ecom:CustomField.Template")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:CustomField.Template"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:CustomField.Template");
}
Outputting the template tag
<!--@Ecom:CustomField.Template-->
Check if string has a value
<!--@If Defined(@Ecom:CustomField.Template)-->
Let's output this tag here: <strong><!--@Ecom:CustomField.Template--></strong>
<!--@EndIf(@Ecom:CustomField.Template)-->