Template for refinementList
-
I have installed and configured this plugin (and Algolia) to give the search behaviour I want. However, my search page is configured with three facets e.g.:
`/* Skill level refinement widget */
search.addWidget(
instantsearch.widgets.refinementList({
container: ‘#facet-skill-level’,
attributeName: ‘taxonomies.skill_level’,
operator: “or”,
sortBy: [‘name:asc’],
limit: 10,
templates: {
header: ‘<h3 class=”widgettitle”>Skill Level</h3>’,
item: ‘{{name}} ({{count}})’,
},
})
);’My objective is to have a checkbox active next to the name, and then the count of items in brackets (i.e. the default template except the count is in ()
However, my code loses the checkbox.
What silly mistake am I making?
- The topic ‘Template for refinementList’ is closed to new replies.