Forum Discussion
JoostvdLinden
Nov 19, 2018Brass Contributor
SharePoint Online Search Image URL
Dear all, I have created a classic SharePoint page in SharePoint Online and added the Search Results Web Part to it. I have configured the Search Results Web Part to result images from a specif...
- Nov 27, 2018
What I would do is download that item display template, then simply find where it injects the Path managed property and replace it with your PictureUrl property.
At the top of the display template in the mso:ManagedPropertyMapping section, make sure to include 'PictureUrl':PictureUrl
JoostvdLinden
Nov 28, 2018Brass Contributor
Thanks for your reply Thomas!
I have now managed to work this out. By accident I was trying to make this work using the Item_Default.html Display Template, but it should have changed the Item_Picture.html file.
Now it does no longer navigate to the DispForm.aspx, but the the PictureUrl path instead.
I have now managed to work this out. By accident I was trying to make this work using the Item_Default.html Display Template, but it should have changed the Item_Picture.html file.
Now it does no longer navigate to the DispForm.aspx, but the the PictureUrl path instead.
Modadm2k22
Jan 20, 2022Copper Contributor
Hi there
Appreciate that this is some time ago, but I don't suppose you could provide an example of the modification that you made to get this to work please?
I have tried adding 'PictureUrl':'PictureUrl' into the template and 'Path':'PictureUrl' have had no luck so far.
Any insight you can provide would be most appreciated.
Thanks.