Headless Server Developer Manual / Version 2101
Table Of ContentsTo use Product Lists with Headless Server, Headless Server Search needs to be set up.
Product Lists are handled with the productListAdapter
. 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 CMQueryList document.
{ content { productList(id: "7692") { items { ... on CMTeasable { teaserTitle teaserText } ... on Product { name shortDescription } } } } }
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
Please consult the Studio User Manual for details.
Valid from and valid to conditions are applied to search filters automatically.
Product List Configuration
Caching for Product lists is only performed in live mode and the caching time can be configured with
caas.querylist.search.cache.seconds