Ecom:Group:Field.[TempateTag]
Version: - stringSummary
The Ecom:Group:Field
tags let you display information about product group fields.
Settings
The tag Ecom:Group:Field.[TagName]
has following extensions:
Extension | Description |
*.Value |
The value of the input field for the product group field (Ecommerce - Product group - Edit group - Product group fields) |
*.Value.Clean | The value of the input field for the product group field (same as Value - mainly used with Link or File Manager) |
*.Value.Clean.Fullpath | The value of the input field for the product group field (same as Value - mainly used with Link or File Manager. Contains /Files or /Files/Billeder) |
*.Name | The product group field name (Management Center - Ecommerce - Product catalog - Product group fields - General - Settings - Name) |
*.System | The product group field system name (Management Center - Ecommerce - Product catalog - Product group fields - General - Settings - System name) |
*.Template | The product group field template tag (Management Center - Ecommerce - Product catalog - Product group fields - General - Settings - Template tag) |
Examples
Outputting the template tag
@GetString("Ecom:Group:Field.[TempateTag]")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Group:Field.[TempateTag]"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Group:Field.[TempateTag]");
}
Outputting the template tag
<!--@Ecom:Group:Field.[TempateTag]-->
Check if string has a value
<!--@If Defined(@Ecom:Group:Field.[TempateTag])-->
Let's output this tag here: <strong><!--@Ecom:Group:Field.[TempateTag]--></strong>
<!--@EndIf(@Ecom:Group:Field.[TempateTag])-->