close

Filter

loading table of contents...

Headless Server Developer Manual / Version 2110

Table Of Contents

7.3 Product Lists

Product 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 document.

{
  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

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.