Ecom:Product.ShortDescription.Raw

Version: - string  

Summary

Returns the full length of the short description for the current product.

Settings

The value is based on the Teaser text input field under the Description tab for a product.

(Ecommerce > Product Catalog > Product group/product > Description tab > Description panel)

Remarks

The length of the displayed teaser text is controlled by the Teaser text input field under the Product Catalog paragraph settings.

If the short description (teaser) is empty for a product, then Ecom:Product.ShortDescription and Ecom:Product.ShortDescription.Raw gets the content from the long description (same content as Ecom:Product.LongDescription). Different behavior can be changes with the Use product description if teaser text is empty checkbox inManagement center - eCommerce - Advanced settings - General - Templates.

Examples

Outputting the template tag

@GetString("Ecom:Product.ShortDescription.Raw")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Product.ShortDescription.Raw-->

Check if string has a value

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