Ecom:LastAddedProduct.ImageLarge.Clean

Version: - string  

Summary

Returns an URL for the image for the last added product.

Settings

The value is based on the Large image input field under the Media tab for a product.

(Ecommerce > Product Catalog > Product group/product > Media tab > Media panel)

Examples

Outputting the template tag

@GetString("Ecom:LastAddedProduct.ImageLarge.Clean")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:LastAddedProduct.ImageLarge.Clean"); }

Outputting the template tag

<!--@Ecom:LastAddedProduct.ImageLarge.Clean-->

Check if string has a value

<!--@If Defined(@Ecom:LastAddedProduct.ImageLarge.Clean)--> Let's output this tag here: <strong><!--@Ecom:LastAddedProduct.ImageLarge.Clean--></strong> <!--@EndIf(@Ecom:LastAddedProduct.ImageLarge.Clean)-->