Ecom:Group.MetaTitle

Version: - string  

Summary

Returns the meta title for the group.

Settings

The value is based on the Title input field under the Details section for a group.

(Ecommerce > Product Catalog > Group > Details > 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:Group.MetaTitle")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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