The Commerce List component is a server side component written in HTL, allowing to display a list of the associated pages of product or product category. The product or category can be selected by the page author, otherwise it's derived from the page URL of a product detail page or a product list page.
The Commerce List component is based on the Core List component and it supports all the same features in addition to the commerce specific extensions.
The Commerce List component is defined at the bottom of the demo product page and is configured to be rendered only when the SKU matches "MH01": "Chaz Kangeroo Hoodie" product.
The Commerce List component is defined at the bottom of the demo product list page and is configured to be rendered only when the category identifier matches "uid-1": "Outdoor Collection" category.
Display pages associated to the selected product.
- product: MH01
- sling:resourceType: cif-components-examples/components/list
- listFrom: productAssociation
-
Product
-
Commerce List
Display pages associated to the selected category.
- category: uid-1
- sling:resourceType: cif-components-examples/components/list
- listFrom: categoryAssociation
-
Product List
-
Commerce List
Display pages as links associated to the selected category.
- linkItems: true
- category: uid-1
- sling:resourceType: cif-components-examples/components/list
- listFrom: categoryAssociation
Display pages as teasers associated to the selected category.
- displayItemAsTeaser: true
- category: uid-1
- sling:resourceType: cif-components-examples/components/list
- listFrom: categoryAssociation
-
-