{"id":605,"date":"2017-07-25T12:34:34","date_gmt":"2017-07-25T10:34:34","guid":{"rendered":"https:\/\/codesavory.com\/demo\/?post_type=knowledgebase&#038;p=605"},"modified":"2021-06-30T16:24:09","modified_gmt":"2021-06-30T14:24:09","slug":"content-restriction","status":"publish","type":"knowledgebase","link":"https:\/\/basepresskb.com\/docs\/knowledge-base\/features\/content-restriction\/","title":{"rendered":"Content Restriction"},"content":{"rendered":"<section class='bpress-notice has-title has-icon is-style-info'><div class=\"bpress-notice-icon\"><span class=\"bp-check-circle\"><\/span><\/div><div class=\"bpress-notice-title\">Info<\/div><div class=\"bpress-notice-content\">The <strong>Content Restriction<\/strong> is a Premium feature.<\/p>\n<p><a href=\"https:\/\/basepresskb.com\/pricing\/\">Upgrade today<\/a> to take your documentation to the next level!<\/div><\/section>\n<p>The BasePress Content Restriction feature gives you full control over the content in your knowledge base. It lets you decide who can see and read any of the articles, sections or KBs in your documentation.<\/p>\n<p>To enable Content Restriction navigate to <em>BasePress &gt;Settings &gt;Content Restriction<\/em> and click on<strong> &#8216;Enable\u00a0content restriction&#8217;<\/strong>.<\/p>\n<figure style=\"width: 780px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/content-restriction-settings-1.png\" alt=\"BasePress Content Restriction Settings\" width=\"780\" height=\"467\" \/><figcaption class=\"wp-caption-text\">BasePress Content Restriction Settings<\/figcaption><\/figure>\n<p>Once activated you&#8217;ll find a new field in the knowledge base, sections and the articles&#8217; editor called <strong>&#8216;Visible to&#8217;<\/strong> with a list of user roles. You can\u00a0 select each role individually or in any combination in order to only allow users with a specific role to view certain content. By default all users can see new content. To restrict the content deselect the roles you don&#8217;t want to have access to the articles. Shown in the screenshot below:<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_954\" aria-describedby=\"caption-attachment-954\" style=\"width: 350px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-954 size-full\" src=\"https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/restriction-roles.png\" alt=\"Restriction roles\" width=\"350\" height=\"310\" srcset=\"https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/restriction-roles.png 350w, https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/restriction-roles-300x266.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><figcaption id=\"caption-attachment-954\" class=\"wp-caption-text\">Restriction roles<\/figcaption><\/figure>\n<p>There are some settings to adjust, in order to determine how content restriction functions in your knowledge base.<br \/>\nSee the full list of\u00a0 <a href=\"https:\/\/basepresskb.com\/docs\/knowledge-base\/settings\/content-restriction-settings\/\">content restriction settings<\/a>.<\/p>\n<p>The most important setting is: &#8220;<strong>Redirected Pages&#8221; <\/strong>since it influences what users can see. Redirected Pages has three options and they work as follow:<\/p>\n<ol>\n<li><strong>All Pages<\/strong><br \/>\nAll the restricted knowledge bases, sections and articles are visible <strong>ONLY<\/strong> to users that have access to them. They won&#8217;t appear in any page, widget or search. Direct access to any of these pages will lead to a 404 error page as if the content isn&#8217;t present in the website.<\/li>\n<li><strong>None<\/strong><br \/>\nAll the restricted knowledge bases, sections and articles are visible to <strong>ALL<\/strong> users. They&#8217;ll appear in all pages, widgets and searches. It restricts only the content of the article. Anyone that doesn&#8217;t have the right role to view the content sees a content restriction notice. Optionally a content teaser with a login form.<\/li>\n<li><strong>Section Only<br \/>\n<\/strong>This is a combination of the first two options. All restricted knowledge bases, sections and articles are visible <strong>ONLY<\/strong> to users that have access to them, similar to the first option. Yet if someone accesses an article with a direct link the article shows a restricted notice as in the second option.<\/li>\n<\/ol>\n<p>This screenshot shows a restricted page notice:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-612\" src=\"https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/restricted-page.png\" alt=\"Restricted page notice\" width=\"727\" height=\"700\" srcset=\"https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/restricted-page.png 727w, https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/restricted-page-300x289.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The BasePress Content Restriction feature gives you full control over the content in your knowledge base. It lets you decide who can see and read any of the articles, sections or KBs in your documentation. To enable Content Restriction navigate to BasePress &gt;Settings &gt;Content Restriction and click on &#8216;Enable\u00a0content restriction&#8217;. Once activated you&#8217;ll find a [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/basepresskb.com\/docs\/knowledge-base\/features\/content-restriction\/\">Read More&#8230;<span class=\"screen-reader-text\"> from Content Restriction<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[21],"knowledgebase_tag":[],"class_list":["post-605","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-features"],"_links":{"self":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/comments?post=605"}],"version-history":[{"count":4,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/605\/revisions"}],"predecessor-version":[{"id":1649,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/605\/revisions\/1649"}],"wp:attachment":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/media?parent=605"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase_cat?post=605"},{"taxonomy":"knowledgebase_tag","embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase_tag?post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}