Headless Server Developer Manual / Version 2310
Table Of ContentsProduct lists are handled with the productListAdapter
(see Section 6.2.2.2, “Adding a Product List” in Studio User Manual).
The following functionality is supported:
- Paging
- Limiting the result size
- Filter by Subcategories with a specific value
The following GraphQL query is a simple example for fetching data from a CMProductList content.
{ content { productList(id: "856") { items { ... on CMTeasable { teaserTitle teaserText } ... on ProductRef { externalId } } } } }
Product List configuration is done in CoreMedia Studio, such as:
- First Displayed Position: The position of the first item to be displayed (for paging)
- Limit: Limit of the products in the Product List
- Order: The sort order
The results of the query are automatically filtered for Valid from and valid to conditions.
Product List Cach Configuration
Caching for Product lists is only performed in live mode and the caching time can be configured with
caas.search.querylist-search-cache-for-seconds