Ecom:Product.ImageMedium.Default

Version: - string  

Summary

Returns a medium (default) image for a product.

Settings

The value is based on the Medium input field under the ecommerce no image settings.

(Management Center - Ecommerce - Advanced - Images - No image - Medium)

Remarks

The value is returned as a HTML code snippet containing an <img> tag.

Examples

Outputting the template tag

@GetString("Ecom:Product.ImageMedium.Default")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageMedium.Default"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.ImageMedium.Default"); }

Outputting the template tag

<!--@Ecom:Product.ImageMedium.Default-->

Check if string has a value

<!--@If Defined(@Ecom:Product.ImageMedium.Default)--> Let's output this tag here: <strong><!--@Ecom:Product.ImageMedium.Default--></strong> <!--@EndIf(@Ecom:Product.ImageMedium.Default)-->