How filter Highlighted content web part using query string parameters?

%3CLINGO-SUB%20id%3D%22lingo-sub-122707%22%20slang%3D%22en-US%22%3EHow%20filter%20Highlighted%20content%20web%20part%20using%20query%20string%20parameters%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-122707%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20transforming%20a%20classic%20SharePoint%20environment%20to%20Modern%20Pages%20and%20now%20we%20are%20working%20on%20a%20dynamic%20page%20that%20is%20displaying%20content%20using%20the%20Search%20Results%20web%20part.%20This%20web%20part%20is%20filtering%20search%20results%20based%20on%20a%20'KmsId'%20parameter%20supplied%20in%20the%20browsers%20query%20string.%20In%20the%20Search%20Results%20web%20part%20I%20can%20use%26nbsp%3B%3CSPAN%3E%7BQueryString.KmsId%7D%20for%20this.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20configure%20the%20Highlighted%20Content%20web%20part%20to%20filter%20content%20based%20on%20a%20parameter%20as%20supplied%20in%20the%20querystring%3F%20Can%20I%20use%20something%20like%26nbsp%3B%7BQueryString.KmsId%7D%20to%20filter%20Highlighted%20Content%20results%20or%20is%20there%20some%20of%20a%20workaround%20to%20implement%20this%20using%20Modern%20Pages%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Senior Member

We are transforming a classic SharePoint environment to Modern Pages and now we are working on a dynamic page that is displaying content using the Search Results web part. This web part is filtering search results based on a 'KmsId' parameter supplied in the browsers query string. In the Search Results web part I can use {QueryString.KmsId} for this.

 

How can I configure the Highlighted Content web part to filter content based on a parameter as supplied in the querystring? Can I use something like {QueryString.KmsId} to filter Highlighted Content results or is there some of a workaround to implement this using Modern Pages?

0 Replies