Ecom:Product:Detail.Image

Version: - string  

Summary

Returns an image or additional information about the product.

Settings

The value is based on an Details - Images/links input field on the Media tab for a product.

(Ecommerce > Product Catalog > Shop > Product group > Product > Media tab - Details - Images/Links)

Remarks

Returns the complet source code for the image tag <img>.

Examples

Outputting the template tag

@GetString("Ecom:Product:Detail.Image")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product:Detail.Image"); }

Outputting the template tag

<!--@Ecom:Product:Detail.Image-->

Check if string has a value

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