0

I would like to customize PnP search web part so it show results same as we see in default search in sharepoint with document preview and created data and modified data short summary and dividing line after each results

I tried using list layout getting results in very simple format I have created All results web part which are taking data from drive, external, list item and sites.

Can anyone help me in this?

1 Answer 1

1

First of all check if any of the available layouts/templates satisfies your requirements:

enter image description here

Reference: Search Results - Layouts

If not, you can create your own custom layout/template from scratch as per your requirements.

Follow this article for detailed steps: Create your first custom template

2
  • Thank you but I have different entity types to search in one search result and want different layout for different entity in want to understand how can we write different condition for different entity in my one custom template
    – Ashok
    Commented Apr 21, 2023 at 9:07
  • You must be getting the name of entity type in results. You may need to write handlebar conditions/expressions based on it. Check the extensibility section if it helps: microsoft-search.github.io/pnp-modern-search/extensibility Commented Apr 21, 2023 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.