Ecom:FieldDisplayGroup.Field.DefaultValue
Version: 9.7.0 stringSummary
Returns Default Value for the field.
Settings
The value is avaialble for Product Custom and Product Category fields type of list only. It can be defined in the field definition - Options section.
Examples
Outputting the template tag
@GetString("Ecom:FieldDisplayGroup.Field.DefaultValue")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:FieldDisplayGroup.Field.DefaultValue"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:FieldDisplayGroup.Field.DefaultValue");
}
Outputting the template tag
<!--@Ecom:FieldDisplayGroup.Field.DefaultValue-->
Check if string has a value
<!--@If Defined(@Ecom:FieldDisplayGroup.Field.DefaultValue)-->
Let's output this tag here: <strong><!--@Ecom:FieldDisplayGroup.Field.DefaultValue--></strong>
<!--@EndIf(@Ecom:FieldDisplayGroup.Field.DefaultValue)-->