Ecom:Group.Detail.Image
Version: 9.9.0 stringSummary
Returns an image.
Settings
The value is based on an image added to specific asset category in the product group definition.
(Ecommerce > Product Catalog > Shop > Product group > Assets )
Remarks
Returns the complet source code for the image tag <img>.
Examples
Outputting the template tag
@GetString("Ecom:Group.Detail.Image")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Group.Detail.Image"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Group.Detail.Image");
}
Outputting the template tag
<!--@Ecom:Group.Detail.Image-->
Check if string has a value
<!--@If Defined(@Ecom:Group.Detail.Image)-->
Let's output this tag here: <strong><!--@Ecom:Group.Detail.Image--></strong>
<!--@EndIf(@Ecom:Group.Detail.Image)-->