Improve Highlighted content web part to support custom content types and their custom columns
I'd like to show users documents from an another site (different o365 group site). I came across the Highlighted content web part which is a very flexible and potentially useful function. However I can not filter my documents with it as it
1 does not show custom content type at the type or document type filters (even though my content type is directly inheriting Document), and does not lists my documents either (basically being Documents because of the inheritance)
2 can not select custom columns of my content type at the managed property filter.
We’re working on an option in highlighted content to enable custom queries where you can provide the KQL or CAML and specify your own query. This will enable you to search by custom content types.
Nicola Cinel commented
As suggested, in the HiglightContent configuration, set contenttype to ALL, then move to the filter section and use the managed property option, to filter by CT.
You can filter on ContentType by just filtering on the name of the Content Type. You can also filter on the managed property ContentTypeId, which is a more robust solution, since CT name changes won't affect your solution. Obviously you have to manually copy/paste the Content Type ID in the webpart filter properties. You can find the Content Type ID by opening it in the browser, and copy/paste the ID from the URL. Or look it up using PowerShell and Office DEV PnP.