Headless Server Developer Manual / Version 2110
Table Of ContentsFor a CMSelectionRules document 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 documents 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.
- rule: The parsed rule as String.
Query to retrieve a CMSelectionRules document:
{ content { content(id: "1234") { ... on CMSelectionRules { id name rules { rule target { id } referencedContent { id } } defaultContent { id } } } } }