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
- 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
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.
The component has the following JCR properties:
./modelPath
- defines the path to the Content Fragment Model defining the content fragments to be displayed./linkElement
- defines the element to be used to match the content fragment to the product SKU or category identifier./displayMode
- defines whether a single text element (singleText
) or multiple elements (multi
) are displayed./elementNames
- multi-valued property defining the elements to be rendered and in which order (optional: if not present, all elements are rendered)./parentPath
- parent path of the content fragments to be displayed./paragraphScope
- defines if all or a range of paragraphs are to be rendered (only used in paragraph mode)./paragraphRange
- defines the range(s) of paragraphs to be rendered (only used in paragraph mode and if paragraphs are restricted to ranges)./paragraphHeadings
- defines if headings should count as paragraphs (only used in paragraph mode and if paragraphs are restricted to ranges)./id
- defines the component HTML ID attribute.
See the BEM description of the Content Fragment component of the AEM WCM Core Components library.
- Vendor: Adobe
- Version: v1
- Compatibility: AEM 6.5 / AEMaaCS
- Status: production-ready