Promote a Page in SharePoint Communication site
On SharePoint
I was playing with the new communication site lately and I was wondering what differs a news page from a normal site page. All of the pages resides under the same site pages library. The first though entered my head was maybe it's a different content type.
By running a simple PowerShell script I find out that they are both using the same Content Type (SitePage) with ID
I was actually shocked as it was an old practice of mine to create different content type for different content elements also separate layout pages to dictate the rendering of these various intranet contents.
What I see now is an editing based experience. You can have various layouts per single content type as you can have a news page with single column layout or two-column layout that enables you to create a specific experience per item not per content type which is very flexible yet more time consuming from and editing experience and requires more governance to make sure that not every news item will have a completely different experience.
The last drawback can be handled by copying an existing post instead of starting from scratch but again that doesn't stop the super user from messing up the copy.
I know I've got side tracked as usual , back to the main topic of the post, what I did next is that I used my poor PowerShell skills to extract all the attributes of the pages then I compared both using winmerge (pretty old tool right)
I find out that there is a property called PromotedState which is 0 in the case of normal SitePage and 2 in the news Page.
If you navigate to a normal site Page you will find an option to promote a page which gives you an option to publish it as news post (eventually change the PromoteState from 0 to 2), you can only see the promote button if the page is published
to figure out what really happens behind the scene I had to look for all the xhr request in the browser console and I find out that when you click promote button it sends a POST request to https://yourtenant.sharepoint.com/sites/sitename/_api/sitepages/pages(10)/PromoteToNews
and the response returns as below indicating a successful promotion of the page
Then the page PromoteState will be updated to 2 and will appear in the Out of the box news webpart
Hi Amr Fouad - Can we use this api for development purpose, Will it be supported by MS / Is there any documentation available for this API ?
ReplyDelete/_api/sitepages/pages(10)/PromoteToNews
Thanks in advance...
It is actually a great and helpful piece of information. I'm pleased that you shared this useful information with us. I know well, it is not always easy to reach to all of your clients at a time. For that you can use business texting service, this may help you to send your clients' text, alerts, and notifications on time and in the fastest way.
ReplyDeleteIts a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. agence digitale Alsace
ReplyDeleteI am definitely enjoying your website. You definitely have some great insight and great stories. creare sito ecommerce
ReplyDeleteHi there! Nice post! Please tell us when I will see a follow up! hire php developer 11 best freelance
ReplyDeleteA very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. WordPress Developer Brisbane
ReplyDeleteThis is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.
ReplyDeleteclick here
I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.
ReplyDelete먹튀검증커뮤니티
I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me.
ReplyDelete파워볼사이트
I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. I thank you to help making people more aware of possible issues.
ReplyDeletecredit card processing sales
Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work.
ReplyDeleteFlyttstädning Boden
Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.
ReplyDeletebuy pregabalin online in uk
This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things.
ReplyDeleteNorth American Bancard Partners
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
ReplyDeletegarage builders richmond va
ReplyDeleteThank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards,
how to become a credit card processor
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!!
ReplyDelete토토사이트
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
ReplyDeleteBTC Colombia
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. 먹튀사이트
ReplyDeleteThis is actually the kind of information I have been trying to find. Thank you for writing this information. i99pro
ReplyDeleteSomeone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! 안전놀이터
ReplyDeleteI really like your writing style, great information, thankyou for posting. 온라인바카라
ReplyDeleteThank you so much as you have been willing to share information with us. We will forever admire all you have done here because you have made my work as easy as ABC. 먹튀검증
ReplyDeleteThis is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. 안전놀이터
ReplyDeleteI was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. 무료릴게임
ReplyDeleteThank you for taking the time to publish this information very useful! 먹튀사이트
ReplyDeleteNew web site is looking good. Thanks for the great effort. 메이저사이트
ReplyDeleteWithout fail, your writing style is top professional; even your website also looks amazing thank you for posting. pii-email
ReplyDeleteWonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. 토토커뮤니티
ReplyDeleteAn fascinating discussion is value comment. I think that it is best to write extra on this matter, it won’t be a taboo topic however generally people are not enough to talk on such topics. To the next. Cheers joker123
ReplyDeleteGood website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! 토토사이트
ReplyDeleteGreat things you’ve always shared with us. Just keep writing this kind of posts.The time which was wasted in traveling for tuition now it can be used for studies.Thanks 팔팔카
ReplyDeleteThis is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. 안전놀이터
ReplyDeleteI am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here. 대전스웨디시
ReplyDeleteThe post is written in very a good manner and it contains many useful information for me. รักษารอยแผลเป็นจาก สิว
ReplyDeleteAt Inovi, we’re committed to achieving the highest success rates while providing personalized care to our patients. Our Houston location offers expert care and is home to our state-of-the-art embryology lab. like this
ReplyDeleteWe place a great deal of attention on the values, principles, knowledge, relationships and abilities that allow for wealth creation. Our values-based model for wealth transition influences human, intellectual, social and structural capital to support and promote growing financial capital. https://www.rsjcpa.com/
ReplyDeleteRSJ is at the top of our game when it comes to tax-minimization strategies for asset growth, protection and transfer. We have always known that something was missing from traditional estate planning for high-net-worth families. https://www.rsjcpa.com/
ReplyDeleteImpressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards. 먹튀검증
ReplyDeleteYou make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. 먹튀폴리스
ReplyDeleteCalls are gathered as nearby calls, Subscribers Trunk Dialing, International Subscribes Dialing. Through web one can get to the necessary data from any region of the planet. The changed type of postal help is email. Best walkie talkie
ReplyDelete바카라사이트
ReplyDeleteHello I am so delighted I located your blog, This is my website and it has been very helpful.The biggest bonus you can get on this site is always the biggest bonus you can get if you are an active member of this site, and you don't have to worry about it as this is the best and most trusted site.
ReplyDeleteThis site seems to inspire me a lot. Thank you so much for organizing and providing this quality information in an easy to understand way. I think that a healthy era of big data can be maintained only when such high-quality information is continuously produced. And I, too, are working hard to organize and provide such high-quality information. It would be nice to come in once and get information.
Also visit my site:토토사이트
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. 메이저사이트
ReplyDeleteI wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. 토토사이트
ReplyDeleteIts a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. 먹튀검증
ReplyDeleteCasinoMecca
ReplyDelete먹튀검증 "At that point I got in the thick of things and never did I think that going into my third shot on 17 I was going to have a one-shot lead," Rahm said. "That's when I had to change a bit of the mindset of chasing and needing birdies to, 'All right, let's get this up-and-down, hopefully birdie 18 and give ourselves the best chance.'"
ReplyDelete토토사이트 "You never want to see somebody have a bad day down the stretch," Rahm said. "But I feel like with that lead he had, I needed to play really good and he needed to make a couple mistakes."
ReplyDelete