News Web Part - filter by Managed Metadata

%3CLINGO-SUB%20id%3D%22lingo-sub-331187%22%20slang%3D%22en-US%22%3ENews%20Web%20Part%20-%20filter%20by%20Managed%20Metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-331187%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20added%20a%20Managed%20Metadata%20(with%20allow%20multiple%20choices%20enabled)%20column%20to%20the%20Site%20Pages%20library.%20When%20I%20use%20the%20News%20web%20part%20and%20choose%20the%20Page%20Properties%20filter%2C%20i%20can%20set%20it%20%22Equal%22%20to%20a%20value%2C%20but%20I%20can't%20use%20Contains%20or%20any%20other%20filter%20type.%20This%20prevents%20us%20from%20displaying%20a%20news%20article%20that%20has%20more%20than%20one%20attribute%20selected%20in%20the%20Managed%20Metadata%20column.%3C%2FP%3E%3CP%3EIs%20this%20is%20a%20known%20limitation%20or%20a%20bug%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-331187%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-567198%22%20slang%3D%22en-US%22%3ERe%3A%20News%20Web%20Part%20-%20filter%20by%20Managed%20Metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-567198%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1096%22%20target%3D%22_blank%22%3E%40Dean%20Gross%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20exactly%20the%20same%20issue.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20a%20news%20manager%2Fpage%20owner%20I%20need%20to%20be%20able%20to%20add%20multiple%20items%20as%20filters%20specifying%20X%20and%20Y%20as%20well%20as%20X%20or%20Y%20categories.%20So%20that%20I%20can%20show%20the%20news%20I%20want%20on%20my%20page.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20took%20me%20a%20while%20to%20figure%20out%20that%20to%20see%20if%20my%20filter%20had%20worked%20I%20had%20to%20click%20the%20%22Apply%22%20button%20(different%20functionality%20to%20other%20modern%20webpart%20filter%20settings).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDorje%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1265487%22%20slang%3D%22en-US%22%3ERe%3A%20News%20Web%20Part%20-%20filter%20by%20Managed%20Metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1265487%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Dean%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20find%20a%20solution%20to%20this%3F%20I'm%20having%20the%20same%20problem.%20I%20have%20a%20custom%20column%20in%20the%20pages%20library%20but%20unable%20to%20filter%20by%20it%20in%20the%20News%20web%20part.%20I%20selected%20'page%20properties'%20in%20the%20filter%20but%20my%20custom%20column%20doesn't%20show.%20I%20only%20have%20'Title'.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1265956%22%20slang%3D%22en-US%22%3ERe%3A%20News%20Web%20Part%20-%20filter%20by%20Managed%20Metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1265956%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3471%22%20target%3D%22_blank%22%3E%40Paul%20Mathanarajah%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20just%20checked%20my%20modern%20sharepoint%20intranet%20home%20page%2C%20news%20carosel.%3C%2FP%3E%3CP%3EIn%20the%20webpart%20filter%2C%20the%20only%20drop%20down%20options%20I%20have%20are%20a%20%22blank%22%20drop%20down%20item%20and%20%22title%22%20item%2C%20then%20the%20equals%2Ccontains%20etc%20drop%20down%3C%2FP%3E%3CP%3EI%20thought%20that%20the%20news%20filter%20used%20to%20have%20a%20%22managed%20property%22%20drop%20down%20option%20along%20with%20the%20%22title%22%20option.%20But%20I%20may%20be%20mistaken.%20When%20I%20checked%20just%20now%20only%20the%20%22Highlighted%20content%22%20web%20part%20had%20the%20%22managed%20property%22%20filter%20option.%3C%2FP%3E%3CP%3EPerhaps%20you%20could%20use%20%22Highlighted%22%20content%20Paul%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1267685%22%20slang%3D%22en-US%22%3ERe%3A%20News%20Web%20Part%20-%20filter%20by%20Managed%20Metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1267685%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F228833%22%20target%3D%22_blank%22%3E%40Dorje%20McKinnon%3C%2FA%3E%26nbsp%3BThanks!%20I%20found%20the%20answer%20to%20my%20problem.%20I%20was%20using%20a%20Boolean%20(Yes%2FNo)%20column%20for%20my%20news%20pages%20library%20and%20it%20looks%20like%20this%20is%20not%20a%20supported%20data%20type%20for%20the%20News%20web%20part%20filter.%20I%20changed%20to%20Choice%20and%20it%20now%20shows%20in%20the%20drop-down.%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESupported%20column%20types%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3ESingle%20line%20of%20text%3C%2FLI%3E%3CLI%3EMultiple%20line%20of%20text%3C%2FLI%3E%3CLI%3EChoice%20(Multi%20Choice)%3C%2FLI%3E%3CLI%3ENumber%3C%2FLI%3E%3CLI%3ECurrency%3C%2FLI%3E%3CLI%3ELookup%3C%2FLI%3E%3CLI%3EHyperlink%20or%20Picture%3C%2FLI%3E%3CLI%3ECalculated%3C%2FLI%3E%3CLI%3EComputed%3C%2FLI%3E%3CLI%3EManaged%20Metadata%3C%2FLI%3E%3CLI%3EApproval%20Status%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fvitextra.com%2Fen%2Fsupport%2Fkb%2F10031%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fvitextra.com%2Fen%2Fsupport%2Fkb%2F10031%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2108608%22%20slang%3D%22en-US%22%3ERe%3A%20News%20Web%20Part%20-%20filter%20by%20Managed%20Metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2108608%22%20slang%3D%22en-US%22%3EI%20did%20add%20a%20new%20column%20name%20%22category%22%20with%20%22Choice%22%20Type%20but%20I%20did%20not%20see%20it%20from%20the%20dropdown%20of%20Managed%20Property.%20How%20do%20you%20able%20to%20show%20the%20category%20property%20from%20the%20Managed%20property%20dropdown%3F%3CBR%20%2F%3EThank%20you.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2109489%22%20slang%3D%22en-US%22%3ERe%3A%20News%20Web%20Part%20-%20filter%20by%20Managed%20Metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2109489%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F948141%22%20target%3D%22_blank%22%3E%40Vincent_Nguyen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20very%20sure%20how%20to%20answer%20your%20question%20but%20I%20think%2C%20there%20may%20be%20a%20difference%20between%20the%20Library%20Columns%20and%20the%20ContentType%20columns.%3C%2FP%3E%3CP%3EThe%20library%20has%20the%20Category%20column%20%2C%20but%20the%20ContentType%20for%20your%20files%20doesn't%20know%20about%20that%20column%20so%20you'll%20need%20to%20alter%20the%20ContentType%20to%20show%20the%20new%20column%20in%20your%20library.%3C%2FP%3E%3CP%3EI'd%20suggest%20you%20do%20some%20reading%20before%20just%20changing%20things.%20Generally%20you%20don't%20want%20to%20change%20the%20%22Site%20Page%22%20content%20type%2C%20but%20make%20a%20Child%20content%20type%20e.g.%20VincentsSitePage%20with%20the%20%22Site%20Page%22%20as%20it's%20parent.%3C%2FP%3E%3CP%3EThen%20add%20your%20Category%20column%20to%20VicentsSitePage%2C%20then%20change%20all%20your%20pages%20over%20to%20VicentsSitePage%20content%20type%2C%20and%20make%20it%20the%20default%20for%20the%20library.%3C%2FP%3E%3CP%3EThen%20when%20you%20view%20the%20properties%20of%20a%20page%20it%20will%20show%20the%20columns%20related%20to%20it's%20content%20type%20(which%20is%20now%20VincentsSitePage)%20%2C%20which%20contains%20Category.%3CBR%20%2F%3ESorry%20this%20is%20getting%20into%20more%20advanced%20SharePoint%20admin%20tasks.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Respected Contributor

I have added a Managed Metadata (with allow multiple choices enabled) column to the Site Pages library. When I use the News web part and choose the Page Properties filter, i can set it "Equal" to a value, but I can't use Contains or any other filter type. This prevents us from displaying a news article that has more than one attribute selected in the Managed Metadata column.

Is this is a known limitation or a bug?

8 Replies

Hi @Dean Gross 

I have exactly the same issue. 

 

As a news manager/page owner I need to be able to add multiple items as filters specifying X and Y as well as X or Y categories. So that I can show the news I want on my page.

 

It took me a while to figure out that to see if my filter had worked I had to click the "Apply" button (different functionality to other modern webpart filter settings).

 

 

Dorje

Hi Dean,

 

Did you find a solution to this? I'm having the same problem. I have a custom column in the pages library but unable to filter by it in the News web part. I selected 'page properties' in the filter but my custom column doesn't show. I only have 'Title'.

 

Thanks

Hi @PMLIO 

I just checked my modern sharepoint intranet home page, news carosel.

In the webpart filter, the only drop down options I have are a "blank" drop down item and "title" item, then the equals,contains etc drop down

I thought that the news filter used to have a "managed property" drop down option along with the "title" option. But I may be mistaken. When I checked just now only the "Highlighted content" web part had the "managed property" filter option.

Perhaps you could use "Highlighted" content Paul ?

 

@Dorje McKinnon Thanks! I found the answer to my problem. I was using a Boolean (Yes/No) column for my news pages library and it looks like this is not a supported data type for the News web part filter. I changed to Choice and it now shows in the drop-down.:smile:

 

Supported column types:

  • Single line of text
  • Multiple line of text
  • Choice (Multi Choice)
  • Number
  • Currency
  • Lookup
  • Hyperlink or Picture
  • Calculated
  • Computed
  • Managed Metadata
  • Approval Status

https://vitextra.com/en/support/kb/10031

I did add a new column name "category" with "Choice" Type but I did not see it from the dropdown of Managed Property. How do you able to show the category property from the Managed property dropdown?
Thank you.

Hi @Vincent_Nguyen 

I'm not very sure how to answer your question but I think, there may be a difference between the Library Columns and the ContentType columns.

The library has the Category column , but the ContentType for your files doesn't know about that column so you'll need to alter the ContentType to show the new column in your library.

I'd suggest you do some reading before just changing things. Generally you don't want to change the "Site Page" content type, but make a Child content type e.g. VincentsSitePage with the "Site Page" as it's parent.

Then add your Category column to VicentsSitePage, then change all your pages over to VicentsSitePage content type, and make it the default for the library.

Then when you view the properties of a page it will show the columns related to it's content type (which is now VincentsSitePage) , which contains Category.
Sorry this is getting into more advanced SharePoint admin tasks. 

@Dorje McKinnon 

The Managed Property only appears in the drop down (inside the news web part) if you choose "select sites" under "select a news source". !

If you choose "this site" then the managed property is not available! strange...

hi @JuanBij12 . I see the same functionality.
Under "News source", select "This site", then under "Filter" the drop down contains "Page Properties" and for me the only property I can select is Title.
I'm sure if I altered the SitePages content type to contain all the metadata columns I might need then they would show up in this drop down.