Constructing a refiner click for search

Ever wondered if there was a way to have a link which would open up the search page with predefined refiners?

Option 1:

Inside search page, select all the refiners and copy the url and use it. But this is a kind of hard coding.

Option 2:

What if you had to dynamically construct the anchors with search link. This is the article for you.

Original Source here.

Read More »


Do something after all refiners templates have completed rendering

If you created your own display templates, you most probably have used the AddPostRenderCallback function. The AddPostRenderCallback function allows you to execute code once the display template completed rendering and this function can be used in every template (control, item, …).Read More »