Changing image thumbnail in search results (list item) of PnP V4 Search

Arine Fitriani 20 Reputation points
2024-07-09T02:42:46.03+00:00

I use PnP Modern Search v4 in SharePoint Online (Microsoft O365). My query template for the search result is: Path:https://tenantname.sharepoint.com/sites/sitename/Lists/listname contentclass:sts_listitem

I want to change the thumbnail of this search result.
User's image

User's image

I try to change the data-preview-image but it doesn't work.

Where can I find the configuration or query?

Thank you

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,336 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,259 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 23,961 Reputation points Microsoft Vendor
    2024-07-09T09:56:02.9066667+00:00

    Hi @Arine Fitriani ,

    Welcome to Q&A forum!

    The PnP ‘Modern Search‘ solution is an open-source project built by Microsoft together with our MVPs and community members, so the PnP Modern Search Web Part not a web part provided out of the box by Microsoft. We are not very good at it. To better solve your issue, we suggest you reopen the discussion here.

    Reference:

    https://microsoft-search.github.io/pnp-modern-search/

    Have a nice day!


    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful