close

Filter

loading table of contents...

Headless Server Developer Manual / Version 2301

Table Of Contents

8.1 Retrieve CMSelectionRules Content Items

For a CMSelectionRules content item the following properties can be retrieved:

  • defaultContent: The default content
  • rules: The rules, each rule consists of
    • rule: The parsed rule as String.

      Referenced content is resolved as [type.]content:1234, for example, locationTaxonomies.content:1144.

      Referenced CMSegment content items are resolved inline by applying the conditions. For example, segment.content:11612=true is replaced with (subjectTaxonomies.content:1374>0.85 and socialuser.gender=female)=true.

      The "and" operator has a higher precedence that the "or" operator.

    • target: The target content
    • referencedContent: A list of content that is referenced in the rule.

Query to retrieve a CMSelectionRules document:

{
  content {
    content(id: "1234") {
      ... on CMSelectionRules {
        id
        name
        rules {
          rule
          target {
            id
          }
          referencedContent {
            id
          }
        }
        defaultContent {
          id
        }
      }
    }
  }
}

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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