List-Formatting
List-Formatting copied to clipboard
Library thumbnail doesn't work on Search Results page
Category
Bug
Expected or Desired Behavior
Expects file thumbnail to work on 'Search results' page as well when using this sample https://github.com/SharePoint/sp-dev-list-formatting/blob/master/column-samples/file-thumbnail/file-thumbnail.json.
It users @thumbnail.medium.
Observed Behavior
No thumbnail is displayed in 'Search Results' view.
Steps to Reproduce
- Create a new 'Single line of text column'
- Add column formatting to display file thumbnail as per sample here https://github.com/SharePoint/sp-dev-list-formathttps://guides.github.com/features/mastering-markdown/ting/blob/master/column-samples/file-thumbnail/file-thumbnail.json
- Make Thumbnail column to be the very first column of default view
- Thumbnail works all good within library views
- Search for a file using the modern search box that appears at top or left of library
- Search results page shows nothing for the thumbnail
Hi, Unfortunately this is out of the box functionality for SharePoint lists, as column formatting isn't supported in the search view. If you'd like to see this, please add it to the SharePoint UserVoice. https://sharepoint.uservoice.com/