{"id":2771,"date":"2019-08-30T12:08:12","date_gmt":"2019-08-30T10:08:12","guid":{"rendered":"https:\/\/www.itidea.nl\/?p=2771"},"modified":"2019-09-27T12:24:21","modified_gmt":"2019-09-27T10:24:21","slug":"controlling-comments-settings","status":"publish","type":"post","link":"https:\/\/www.itidea.nl\/index.php\/controlling-comments-settings\/","title":{"rendered":"Controlling comments settings"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Comments can\nbe controlled at three levels: page, web and tenant. This post describes these\noptions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SitePage level<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Comments can\nbe switched on and off at page level. This does not delete the comments and\nwhen switched back on the thread will be shown again.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"300\" src=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/1-Controlling-comments-291x300.png\" alt=\"\" class=\"wp-image-2772\" srcset=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/1-Controlling-comments-291x300.png 291w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/1-Controlling-comments.png 478w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><figcaption>Example comment thread<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Comments can\nbe switched on and off by users in at least the Member Group.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When\ncomments are switched off the number of comments are still visible when showing\nthe details of the page when viewed by users in the Owners group or site\ncollection owners.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"449\" src=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/2-Controlling-comments.png\" alt=\"\" class=\"wp-image-2773\" srcset=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/2-Controlling-comments.png 625w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/2-Controlling-comments-300x216.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><figcaption>Number of comments visible<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Web settings<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">At web level\nthe setting &#8216;CommentsOnSitePagesDisabled&#8217; can be set to true to disable the\ncomments using PowerShell. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\"> \n$web = Get-PnPWeb\n$web.CommentsOnSitePagesDisabled = $true\n$web.Update()\n$web.Context.ExecuteQuery()\n<\/pre><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This does\nnot delete the comments and when switched back on the thread will be shown\nagain. The number of comments are still visible like the above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I didn&#8217;t\nfind this setting using the UI.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tenant setting<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In the Admin\ncenter Comments can be switched off globally. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To get there select &#8216;Settings&#8217; and &#8216;Comments on Site Pages&#8217;. Can&#8217;t find the setting? Go to the classic settings page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/3-Controlling-comments.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"70\" src=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/3-Controlling-comments-1024x70.png\" alt=\"\" class=\"wp-image-2774\" srcset=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/3-Controlling-comments-1024x70.png 1024w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/3-Controlling-comments-300x20.png 300w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/3-Controlling-comments-768x52.png 768w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/3-Controlling-comments-940x64.png 940w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2019\/09\/3-Controlling-comments.png 1069w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Tenant level setting<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Comments can be controlled at three levels: page, web and tenant. This post describes these options. SitePage level Comments can be switched on and off at page level. This does not delete the comments and when switched back on the &#8230; <a class=\"more-link\" href=\"https:\/\/www.itidea.nl\/index.php\/controlling-comments-settings\/\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,22,41],"tags":[37,43,46],"class_list":["post-2771","post","type-post","status-publish","format-standard","hentry","category-office-365","category-powershell","category-sharepoint","tag-office365","tag-powershell","tag-sharepoint"],"_links":{"self":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/2771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/comments?post=2771"}],"version-history":[{"count":6,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/2771\/revisions"}],"predecessor-version":[{"id":2781,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/2771\/revisions\/2781"}],"wp:attachment":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/media?parent=2771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/categories?post=2771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/tags?post=2771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}