Forum Discussion
James Golding
Jun 01, 2017Copper Contributor
Customizing Default_Item.js and Group_Default.js in applying custom MetaData Search Results
I'm trying to customize Item_default.js to obtain customized search results in a non-publishing site. I understand that there are two files that work together. The Group_Default.js and the Item_Default.js
When I download the Item_Default.js and use CODE Editor to rename Item_Default.js to Custom_Item.js
Uploading and properly setting all the metadata on the Custom_Item.js I am getting the
Template '~sitecollection/_catalogs/masterpage/Display Templates/Search/Custom_Item_Picture.js' not found or has syntax errors. (LoadTemplate: ~sitecollection/_catalogs/masterpage/Display Templates/Search/Group_Default.js)
Do I need to update the Group_Default.js somehow?
- Richard BourkeIron Contributor
You need to grab the item_default.html file, rename it, customize it. Upload it back to the publishing site and the .js file will be generated automatically. Then you can use that on your non-publishing site.