Skip to main content
2 of 2
edited body
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

When publishing with DXA and a nested keyword structure, "ParentKeywords" does not get populated

When viewing something published with DXA and a nested Keyword structure, is doesn’t seem that "ParentKeywords": [], gets populated when generated using DXA Component Template Generate Dynamic Component.

"Fields": {
    "theKeyword": {
        "Name": "theKeyword",
        "Values": ["Little Jimmy"],
        "NumericValues": [],
        "DateTimeValues": [],
        "LinkedComponentValues": [],
        "FieldType": 3,
        "CategoryName": "TestCategory",
        "CategoryId": "tcm:286-27081-512",
        "XPath": "tcm:Content/custom:Content/custom:theKeyword",
        "KeywordValues": [{
            "Description": "",
            "Key": "littleJimmy",
            "TaxonomyId": "tcm:286-27081-512",
            "Path": "\\TestCategory\\Stuff2\\Jim\\Little Jimmy",
            "ParentKeywords": [],
            "MetadataFields": {},
            "Id": "tcm:286-164010-1024",
            "Title": "Little Jimmy"
        }]
    }
},

What is the purpose of "ParentKeywords": [], and how can I get it to provide useful data?

Travis
  • 175
  • 1
  • 6