Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Commerce Content Fragment (v1)

Commerce Content Fragment component written in HTL that displays the elements of a content fragment or a selection thereof. The content fragment is selected dynamically based on:

  • the content fragment model configured for the component
  • the category identifier of the category page or the product SKU of the product page
  • the category identifier or product SKU provided in the content fragment

Features

  • Displays the elements of a Content Fragment as an HTML description list
  • By default renders all elements of a Content Fragment
  • Can be configured to render a subset of the elements in a specific order

Use Object

The Content Fragment component uses the com.adobe.cq.commerce.core.components.models.contentfragment.CommerceContentFragment Sling model which extends com.adobe.cq.wcm.core.components.models.contentfragment.ContentFragment with commerce specific functions.

Properties

The component has the following JCR properties:

  1. ./modelPath - defines the path to the Content Fragment Model defining the content fragments to be displayed
  2. ./linkElement - defines the element to be used to match the content fragment to the product SKU or category identifier
  3. ./displayMode - defines whether a single text element (singleText) or multiple elements (multi) are displayed
  4. ./elementNames - multi-valued property defining the elements to be rendered and in which order (optional: if not present, all elements are rendered)
  5. ./parentPath - parent path of the content fragments to be displayed
  6. ./paragraphScope - defines if all or a range of paragraphs are to be rendered (only used in paragraph mode)
  7. ./paragraphRange - defines the range(s) of paragraphs to be rendered (only used in paragraph mode and if paragraphs are restricted to ranges)
  8. ./paragraphHeadings - defines if headings should count as paragraphs (only used in paragraph mode and if paragraphs are restricted to ranges)
  9. ./id - defines the component HTML ID attribute.

BEM Description

See the BEM description of the Content Fragment component of the AEM WCM Core Components library.

Information

  • Vendor: Adobe
  • Version: v1
  • Compatibility: AEM 6.5 / AEMaaCS
  • Status: production-ready