Ecom:Product.MetaTitle

Version: - string  

Summary

Returns the meta title for the product.

Settings

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

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

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 title overrides the meta title on the page.

Examples

Outputting the template tag

@GetString("Ecom:Product.MetaTitle")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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