Forum Discussion
Hansjörg Stewering
Oct 02, 2017Brass Contributor
Access "News from Sites" programmatically
I would like to reuse the "News from Sites" news aggregation from the SharePoint Homepage in my own site collection. Is there a way to programmatically get all news from SharePoint sites that the cur...
Jon Miller
Oct 03, 2017Copper Contributor
I found that there is a crawled property ("PromotedState") which you can then map in search schema to a Refinable property. Then you can just use this in Content by Search web parts. The 'News from Sites' content type has a value of '2' in the PromotedState property, so you can filter your search results to that and return all news pages. Hope that helps.
- Hansjörg SteweringOct 04, 2017Brass Contributor
Excellent, thank you.
Is there any way to use a content by search in modern site pages?