Forum Discussion
SharePoint Online Search Image URL
- 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
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
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.
- Modadm2k22Jan 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.
- Aleš ŠavliApr 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.