Office 365 – SharePoint Online – Creating counters in your refinement panels.

Office 365 – SharePoint Online – Creating counters in your refinement panels.today I found this article in which Microsoft describes how to create refinement panels with counters

https://support.office.com/en-us/article/Change-settings-for-the-Refinement-Web-Part-fc0a2cb2-4947-4df8-ace2-3486ad8318b3

A couple of issues in this article.

First of all when I downloaded the filter_default.html display template i found that the following lines appeared below the closing </html> tag:

var g_duration = 125;
var g_iisLatency = 1;
var g_requireJSDone = new Date().getTime();

when I then uploaded the filter display template I got:

mediumThis  error point towards the above script section outside the html tags.

I then moved the script lines inside the html tags ( just following the last div and the refiners are working.

counters

 

 

 

 

 

Then now my second issue with the above article. out of the box display templates should never be edited. Always create a copy and rename display templates to have a useful name. Then apply the template to the web part.

Advertisements

2 thoughts on “Office 365 – SharePoint Online – Creating counters in your refinement panels.

  1. Hi, it’s better if you just remove this script altogether. It’s added dynamically from the server each time the page is refreshed. You don’t need to keep it.

    Like

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.