Home

Custom metadata in modern search results

%3CLINGO-SUB%20id%3D%22lingo-sub-1301087%22%20slang%3D%22en-US%22%3ECustom%20metadata%20in%20modern%20search%20results%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301087%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20use%20new%20modern%20pnp%20search%20web%20parts.%20I%20would%20like%20to%20customize%20search%20results%20and%20display%20there%20my%20costum%20fields%20%2F%20attributes%20%2F%20metadata%20what%20I%20use.%20I%20have%202%20metadata's%20data%20types%20-%20URL%20address%20and%20Person%20but%20I%20do%20not%20know%20how%20to%20display%20them.%20I%20added%20them%20to%20Selected%20properties%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22s1.png%22%20style%3D%22width%3A%20524px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183804iE76F12AFFD57EC85%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22s1.png%22%20alt%3D%22s1.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22s2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183805iEC182D241CFF185C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22s2.png%22%20alt%3D%22s2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20know%20how%20to%20display%20properties%20on%20result%20page%20but%20in%20bad%20form.%20I%20display%20URL%20address%20with%20link%20and%20title%20after%20comma%20and%20contact%20with%20all%20attributes.%20It%20is%20not%20standard%20display%20form%20what%20I%20want.%20Do%20you%20know%20how%20to%20display%20it%20correctly%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMirek%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1301087%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Frequent Contributor

Hi, I use new modern pnp search web parts. I would like to customize search results and display there my costum fields / attributes / metadata what I use. I have 2 metadata's data types - URL address and Person but I do not know how to display them. I added them to Selected properties:

s1.pngs2.png

I know how to display properties on result page but in bad form. I display URL address with link and title after comma and contact with all attributes. It is not standard display form what I want. Do you know how to display it correctly?

 

Thank you,

 

Mirek