microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
389 stars 341 forks source link

Adding specific list properties to slots not working #3560

Closed MBlondin closed 9 months ago

MBlondin commented 9 months ago

Version used 4.10.2

Describe the bug We deployed PnP Modern Search and on a page to search within a specific list. image

We added the properties (list columns) image and added the custom slots image

The only property/Column that shows/works is Location.

kasperbolarsen commented 9 months ago

Where did you add the managed properties, in "Selected properties", I hope? Which layout are you using? Adding the properties in the layout slots is just the first step, you will also have to add them to "Manage columns", depending to which layout you are using

MBlondin commented 9 months ago

Hi @kasperbolarsen I added tthe list properties in the raw properties Using Handlebars/Html layout Cards Managed columns? do you mean image

kasperbolarsen commented 9 months ago

I would recommend looking at the managed properties first, using either the debug layout or one of the tools here, https://microsoft-search.github.io/pnp-modern-search/using-query-tools-to-verify-issues/

Once the managed properties contains the data you expect, you should add them to the "Selected properties" otherwise they are not available for any of the web parts/layouts image