Ecom:Product.Image[PatternName].Default.Clean
Version: - stringSummary
Returns an URL for the product image in the size pattern that's defined in paragraph settings.
Same as Ecom:Product.Image[PatternName].Clean.
Settings
The value is based on the Image folder input field combined with the pattern field under the paragraph settings.
(Page > Paragraph > Module tab > Image folder & User defined patterns)
Remarks
If the pattern name is "Alt_1" then the template tag is named like this @Ecom:Product.ImageAlt_1.Default.Clean.
Examples
Outputting the template tag
@GetString("Ecom:Product.Image[PatternName].Default.Clean")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.Image[PatternName].Default.Clean"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.Image[PatternName].Default.Clean");
}
Outputting the template tag
<!--@Ecom:Product.Image[PatternName].Default.Clean-->
Check if string has a value
<!--@If Defined(@Ecom:Product.Image[PatternName].Default.Clean)-->
Let's output this tag here: <strong><!--@Ecom:Product.Image[PatternName].Default.Clean--></strong>
<!--@EndIf(@Ecom:Product.Image[PatternName].Default.Clean)-->