Dynamically filter content based on page property

%3CLINGO-SUB%20id%3D%22lingo-sub-1613894%22%20slang%3D%22en-US%22%3EDynamically%20filter%20content%20based%20on%20page%20property%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1613894%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3ETLDR%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20aggregate%20pages%20using%20a%20modern%20highlight%20content%20webpart%20an%20filter%20on%20managed%20metadata%20field%20to%20show%20child%20items%3F%20Filter%20should%20work%20dynamically%20based%20on%20page%20taxonomy%20field%20value.%20Like%20you%20could%20with%20classic%20page%20layout%20and%20PageFieldValue%20filter.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EMore%20detailed%20question%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWith%20classic%20webparts%20I%20was%20able%20to%20add%20a%20Content%20Query%20Webpart%20with%20a%20filter%20that%20would%20rollup%20other%20items%20(document%2C%20links%2C%20pages%2C%20etc.)%20that%20had%20the%20same%20metadata%20property%20as%20the%20current%20page%2C%20including%20the%20option%20to%20filter%20on%20managed%20metadata%20child%20items.%20See%20attached%20screenshot.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cqwp_filter.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214829iE2AA7A1861871A04%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22cqwp_filter.png%22%20alt%3D%22cqwp_filter.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20provided%20the%20opportunity%20to%20create%20a%20wiki%20template%20with%20custom%20properties%2C%20add%20a%20CQWP%20to%20the%20page%20layout%2C%20and%20rollup%20items%20by%20default%20on%20the%20same%20property.%20The%20end-user%20only%20had%20to%20create%20pages%20and%20specific%20the%20property%20of%20the%20wiki%20page%2C%20and%20voila%3A%20additional%20content%20appeared%20automatically.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20provide%20the%20same%20functionality%20with%20modern%20webparts.%20I%20can%20add%20custom%20(managed)%20metadata%20to%20modern%20pages.%20I%20can%20add%20a%20Highlight%20Content%20Query%20webpart%20to%20a%20template%20page%2C%20and%20filter%20on%20a%20property%20and%20specify%20the%20filter%20query%20manually.%20But%20it%20seems%20this%20cannot%20be%20accomplished%20dynamically.%20I%20don't%20want%20my%20end-user%20to%20edit%20webpart%20properties%20en%20fiddle%20around%20with%20queries%20etc.%20Why%20should%20they%2C%20they%20should%20only%20update%20the%20page%20properties%20and%20webparts%20should%20apply%20the%20filters%20based%20on%20the%20page%20properties.%20Preferably%20also%20respecting%20managed%20metadata%20field%20with%20multiple%20layers%20and%20be%20able%20to%20show%20child%20items.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20this%20be%20done%20with%20out-of-the-box%20SharePoint%20Online%20and%20modern%20pages%3F%20Or%20is%20there%20an%20item%20on%20the%20roadmap%20that%20would%20make%20this%20possible.%20Any%20tips%20are%20welcome.%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1613894%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Emanaged%20metadata%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPageFieldValue%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

TLDR

Is it possible to aggregate pages using a modern highlight content webpart an filter on managed metadata field to show child items? Filter should work dynamically based on page taxonomy field value. Like you could with classic page layout and PageFieldValue filter.

 

More detailed question

With classic webparts I was able to add a Content Query Webpart with a filter that would rollup other items (document, links, pages, etc.) that had the same metadata property as the current page, including the option to filter on managed metadata child items. See attached screenshot.

 

cqwp_filter.png

 

This provided the opportunity to create a wiki template with custom properties, add a CQWP to the page layout, and rollup items by default on the same property. The end-user only had to create pages and specific the property of the wiki page, and voila: additional content appeared automatically.

 

I would like to provide the same functionality with modern webparts. I can add custom (managed) metadata to modern pages. I can add a Highlight Content Query webpart to a template page, and filter on a property and specify the filter query manually. But it seems this cannot be accomplished dynamically. I don't want my end-user to edit webpart properties en fiddle around with queries etc. Why should they, they should only update the page properties and webparts should apply the filters based on the page properties. Preferably also respecting managed metadata field with multiple layers and be able to show child items. 

 

Can this be done with out-of-the-box SharePoint Online and modern pages? Or is there an item on the roadmap that would make this possible. Any tips are welcome. 

0 Replies