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.
Aleš Šavli
Apr 26, 2019Brass Contributor
Is there a way to do this on Modern experience search? User is redirected to DispForm.aspx when searching for images in the TOP left serach box.
- JoostvdLindenApr 26, 2019Brass Contributor
Hik Aleš Šavli,
I don't think so using out of the box modern web parts.
I think it would require a modern custom SPFX web part to make this way. But this is a whole different ball game.