Forum Discussion

michael meza's avatar
michael meza
Brass Contributor
Apr 16, 2018
Solved

Custom display and hover panel SP 2016

I am attempting to modify the advanced search results page. I want to remove some things from the result and add other metadata to that portion. I also want to open a preview of the PDF files that are in the result set when you hover over.

 

All examples of this are for 2013 and i have issues making them work.

First I do not see the js files and HTML files in the same location when I open SharePoint designer.

Second every example says that if i create the HTML file it will create the JS files automatically I have not found that to be the case either.

 

Is there an example for SP2016 that works? Am I missing something?

 

Thank you in advance!

  • Anonymous's avatar
    Anonymous
    Apr 20, 2018

    Did you check if the publishing features are activated on Site Collection and Web / Site level?

    When those are not activated the HTML-Files are usually missing. 

     

    If you do not want to activate publishing features on this site you can create a Dev-Site with activated Publishing-Features and create your display templates via HTML-Templates there. Afterwards you can copy the .js file to the target site. Probably not a best practice but it works.

     

    If those features are currently not active, I'm curious how you got into the Design Manager as these links are also only shown if publishing is activated.

13 Replies

  • Anonymous's avatar
    Anonymous

    Can you take a look at article below. Hope this helps

     

    https://docs.microsoft.com/en-us/sharepoint/administration/stage-11-upload-and-apply-display-templates-to-the-content-search-web-part

    • michael meza's avatar
      michael meza
      Brass Contributor

      Thank you for the reply. I attempted to map the network drive but get the following error:

      I am doing this on the same box that sharepoint is installed and I am admin on that box.

       

       

      • Anonymous's avatar
        Anonymous

        Did you try instructions below?

         

        https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-map-a-network-drive-to-the-sharepoint-master-page-gallery

         

         

Resources