Ecom:Group.MetaDescription

Version: - string  

Summary

Returns the meta description for the group.

Settings

The value is based on the Description input field under the Meta information section for a group.

(Ecommerce > Product Catalog > Group > Details > Meta information > Description)

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

Examples

Outputting the template tag

@GetString("Ecom:Group.MetaDescription")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Group.MetaDescription"); }

Outputting the template tag

<!--@Ecom:Group.MetaDescription-->

Check if string has a value

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