In here it will publish only the news. Even if I create a page. It won't show there.
I need a code clarification.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
If you download both pages and inspect the contents, you will find that in the news page , you have
PromotedState value as 2.
The contents in the news page are as below:
Where as in case of site page, its is as below:
Right now, you can only provision news page via the news list/news headlines webpart (not sure programmatically). If you create it via Site Contents > Site Pages, it will create a simple site page only which wont be visible inside news webpart since the
PromotedState value is 0 in its case.