The version 2 of the productlist component extends the v2 of productcollection
component and v1 of productlist component model by extending the v1 GraphQL
query with the staged
field introduced in Magento 2.4.2 Enterprise Edition (EE).
This hence requires that the Magento backend is at least version 2.4.2 EE
because the query with the staged
field will be rejected by Magento versions
not having this field in the GraphQL schema.
The following configuration properties are used:
./loadClientPrice
- enables client-side price fetching./enableAddToCart
- displays the 'Add to Cart' button on the products (defaultfalse
)./enableAddToWishList
- displays the 'Add to Wish List' button on the products (defaultfalse
)./paginationType
- the pagination type, eitherpaginationbar
orloadmorebutton
.
The following properties are written to JCR for this component and are expected to be available as Resource
properties:
./category
- the uid of the category to be displayed in the component, if missing the component displays a category based on the page URL./pageSize
- the number of products shown on one page./defaultSortField
- the default sort field for products./defaultSortOrder
- the default sort order for products./showTitle
- if true the component displays the category title./showImage
- if true the component displays the category image./id
- defines the component HTML ID attribute./fragments
- this is a multifield allowing configuration of experience fragments to be inserted in the product list
In addition to the elements documented for the version 2 of the productcollection component, version 2 of productlist introduces these extra elements to display the details of a category and a "staged" flag on the category itself or its products. Note that this is only relevant for AEM author instances.
This version also introduces the possibility to introduce experience fragment placeholders. Using the edit dialog, placeholders containing the position of the placeholder in the grid and the fragment "location" property can be configured. This will search for fragments configured for the current category and the configured location and insert them at specified positions.
BLOCK category
ELEMENT category__root
MOD category__root--staged
MOD category__root--noimage
MOD category__root--notitle
ELEMENT category__header
ELEMENT category__image
ELEMENT category__staged
ELEMENT category__title
- Vendor: Adobe
- Version: v2
- Compatibility: AEM as a Cloud Service / AEM 6.5
- Status: production-ready