Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
if (ctx.RefinementControl.propertyName == "FileType") {
..
//we only want use our custom logic when it is our refiner, so check the mapped managed property (propertyName) and the display name of the refiner
} else if (ctx.RefinementControl.propertyName == "SPSiteURL" && ctx.RefinementControl.overrideDisplayName === "MyRefinerName" ) {
//for each mapping that you need, other than the property you have mapped to the refiner
if (!$isNull(ctx.DataProvider.get_refinementInfo()["ContentTypeId"])) {
listData = listData.concat(ctx.DataProvider.get_refinementInfo()["ContentTypeId"]);
}
if (hasControl) {
listData = mapIaTypes(listData);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment