Model available for use in the Templates, and also returned by PureClarity in server-side requests
Properties
The title of the recommender
Set to “recommender-category”
Array of category objects to show in the recommender
Category Item Properties
The category name to show in the recommender
The url to the category image
A url link to take an optional category page
An optional description text
An array of immediate parent category IDs
An array of immediate child category IDs
An array of ALL child IDs, not just immediate children
Example
{
"title": "Popular Categories",
"type": "recommender-category",
"items": [
{
"Id": "3841",
"DisplayName": "Electronics",
"Image": "https://example.com/images/categories/electronics.jpg",
"Link": "https://example.com/categories/electronics",
"Description": "Latest gadgets and technology",
"Parents": [],
"Children": ["3842", "3843"],
"AllChildIds": ["3842", "3843", "3844", "3845"]
},
{
"Id": "3842",
"DisplayName": "Smartphones",
"Image": "https://example.com/images/categories/smartphones.jpg",
"Link": "https://example.com/categories/smartphones",
"Description": "Latest mobile phones",
"Parents": ["3841"],
"Children": ["3844", "3845"],
"AllChildIds": ["3844", "3845"]
}
]
}