Forum Discussion
Filtering News posts across sites using tags or categories
- Nov 29, 2021This is definitely an advanced skill, but it is not hard to do. I am not aware of any step by step instructions for how to do it but here is a quick way to do a demo to show how it works. You will need to learn about managed metadata, site columns, and the News web part for this to work - as well as options for provisioning sites (which is a completely different topic that you'll want to research). Once you are familiar with these basic terms, here's what you can do. Let's say you want to categorize all news on any site with a News Type. To do that, first create a Term Set in the SharePoint Admin Center for News Types. Make sure each value is unique. Then, create a managed metadata site column on each site called News Type and point the column to the term set you created at the root of your tenant. Add the site column to the Site Pages library on your sites. Now, every site has a column with the exact same name and a shared set of values. You will need to actually create and publish pages with the values for this to work, but once you've got all your content created, you can select the sites you want to roll up in the News Source and then filter using a Managed Property. Find the column you created (it will have a name like owstaxIdNewsType) and use filter options to find Property Name Contains whatever term you are looking to roll up. You have several options for making sure all sites get created with the appropriate columns, but your goal is to ensure that all sites are provisioned with the columns that you need.
andrewparrish Yes, you can create a news web part on Site A that pulls up only News articles from Site B that have a specific managed property. The editor on Site A needs to know the property name and values used on Site B in order to write the query and the property needs to be a managed property, but it is definitely possible if you have metadata on the pages in Site B.
- andrewparrishNov 29, 2021Copper Contributor
SusanHanley Hi! Thank you for the confirmation that it should be possible. I am trying to get this working to show to my VP as we undergo a major facelift of our small intranet.
At the moment I am able to get it to recognize columns within the same page, but I am having no success with the hub site recognizing a column on the site pages page on site B.
Do you by chance no of any blog posts or further instructions that could walk me through this? My SharePoint skills are still in their toddler phase.
- SusanHanleyNov 29, 2021MVPThis is definitely an advanced skill, but it is not hard to do. I am not aware of any step by step instructions for how to do it but here is a quick way to do a demo to show how it works. You will need to learn about managed metadata, site columns, and the News web part for this to work - as well as options for provisioning sites (which is a completely different topic that you'll want to research). Once you are familiar with these basic terms, here's what you can do. Let's say you want to categorize all news on any site with a News Type. To do that, first create a Term Set in the SharePoint Admin Center for News Types. Make sure each value is unique. Then, create a managed metadata site column on each site called News Type and point the column to the term set you created at the root of your tenant. Add the site column to the Site Pages library on your sites. Now, every site has a column with the exact same name and a shared set of values. You will need to actually create and publish pages with the values for this to work, but once you've got all your content created, you can select the sites you want to roll up in the News Source and then filter using a Managed Property. Find the column you created (it will have a name like owstaxIdNewsType) and use filter options to find Property Name Contains whatever term you are looking to roll up. You have several options for making sure all sites get created with the appropriate columns, but your goal is to ensure that all sites are provisioned with the columns that you need.
- reneviscoOct 13, 2023Brass Contributor
Hi Susan,
Your tips are much appreciated!
I did set up a global term group: News Categories, then Term Set: Professional Development, terms: Instructions, Training, Tutorials.
Then I proceeded to set up site columns in two separate sites using managed metadata column type.
Then on the main site, I used a filter using managed property using owstaxIdProfessionalx0020... "contains" - "Training", etc.
Nothing came up? I wonder because of the Hub Site settings? What did I overlook?
Thanks!