Ecom:Product.MetaUrl

Version: - string  

Summary

Returns the meta URL name for the product.

Settings

The value is based on the URL input field for a product.

(Ecommerce > Product Catalog > Product > General tab > Meta information > URL)

Remarks

You need to enable Customized URLs in Management Center – Customized URLs. You also need to enable “Convert Module URLs” in “Internal links”.

The eCommerce meta URL overrides the meta URL on the page.

Examples

Outputting the template tag

@GetString("Ecom:Product.MetaUrl")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Product.MetaUrl-->

Check if string has a value

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