Share via

Format a Date Field & a People or Group Field inside our PnP Modern Search web part

john john 1,031 Reputation points
2021-11-04T01:39:08.943+00:00

I have added the PnP Modern Search v4 web part inside our SharePoint Online tenant from this url @ https://github.com/microsoft-search/pnp-modern-search/releases/tag/4.4.1 .

Now i define the following inside PnP Search result web part to show all documents:-

146363-1.png

where i am trying to show values for a Date column and value for a People or Group columns, as follow:-

146289-2columns.png

Where i defined the managed properties of the above 2 columns inside the PnP Search Results web part as follow:-

146358-cv.png

but i got the following format for the Date & the People or Group:-

146338-dataw.png

So how i can show user friendly Date and user friendly People inside the PnP modern search web part?

Thanks

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,806 Reputation points
    2021-11-04T08:55:40.83+00:00

    Hi @john john ,

    Per my research, pnp search is a custom solution, and it is currently beyond the scope of Q&A forum support. I would suggest you seek help on GitHub, you could get better help there:

    Microsoft-search/pnp-modern-search

    And here is an article you could have a look if interested:
    Using the PnP Modern Search Web Parts

    Thank you for your support and understanding. :)


    If the answer is helpful, please click "Accept 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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.