Ecom:Product.MetaKeywords

Version: - string  

Summary

Returns the meta keywords for the product.

Settings

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

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

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

Examples

Outputting the template tag

@GetString("Ecom:Product.MetaKeywords")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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