Apr 16 2018 10:54 AM
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!
Apr 17 2018 04:00 AM
Can you take a look at article below. Hope this helps
Apr 17 2018 12:19 PM
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.
Apr 17 2018 12:35 PM
Did you try instructions below?
Apr 18 2018 03:41 AM
I did yes and that was my result, i can not map the drive on the machine where I have access.. i can map it from another machine but then i says i do not have permissions
@Deleted wrote:Did you try instructions below?
Apr 18 2018 07:03 AM
I can now drop files into the mapped location. However when I drop an HTML file into the network location:\\drmspdev001@80\_catalogs\masterpage\Display Templates\Search
does not create any .js files.. as the document states should happen
Apr 18 2018 07:11 AM
Try going to web UI edit properties of html file set appropriate properties and check in and it should create a js file.
Apr 18 2018 07:49 AM
I dropped the HTML file in _catalogs/Masterpage/Display Templates/Search
opened the web UI and saw it existed then edited properties clicked ok (only thing changed is template level was not set so I selected Item)
No JS files created anywhere.
then edited properties
Apr 18 2018 07:54 AM
Did you publish the HTML version? once the HTML file gets published, the engine will automatically generate the associated JavaScript file.
Apr 18 2018 08:02 AM - edited Apr 18 2018 08:45 AM
I do not see any commands to publish....
I am using SharePoint 2016, and SharePoint Designer
Apr 19 2018 07:08 AM
Here's how you publish a major version of the file. Please try below.
Apr 19 2018 10:18 AM
I do not think that this link is applicable to the master pages library where search display templates reside.. I do not have those options......
Apr 20 2018 02:13 AM
SolutionDid 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.
Apr 24 2018 10:49 AM
Apr 20 2018 02:13 AM
SolutionDid 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.