Ecom:Product:Detail.Link

Version: - string  

Summary

Returns an URL to an internal link used as additional information for 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)

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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