Your own item_commonitem_body.html


Change default Item_commonitem_body.html

Before we move in the display template, let’s first look at how to change the default item_commonitem_body and use our own. The following steps list the detail (the steps will be same for On-Premise SharePoint although I use SPO as a example):

  • Go to display template folder under master page gallery at your search center on SPO.

Continue reading “Your own item_commonitem_body.html”

Use JQuery inside HTML5 Web Worker


Web workers are game changers in terms of how they can offload work from the browser’s main thread. Given that the current trend is about implementing a page which is dynamic in nature, one has to fallback to using ASYNC jobs.

Even then, the browser chokes and your users may end up with longs page loads and their system, browsers hanging.

Continue reading “Use JQuery inside HTML5 Web Worker”

Run Powershell as Admin with another user account

Have you ever wanted to run the Powershell window impersonating another user?

You can easily do that using Shift + R-Click on the Powershell.exe. But this opens up the window in non-admin mode.

So, to combine both impersonation and admin capabilities, use below inside your current PS1 window:

Start-Process powershell.exe -Credential “domain\anotherUser” -NoNewWindow -ArgumentList “Start-Process powershell.exe -Verb runAs”

I do not remember from where I got the above command, but you have it.

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.

Continue reading “Constructing a refiner click for search”