rodolphe Posted March 24, 2014 Share Posted March 24, 2014 Is it possible to restrict access to some KB articles to admins only? In other words I want to create an internal knowledge base for techs, which clients won't have access to, AS WELL AS a KB for clients. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 24, 2014 Share Posted March 24, 2014 you can create hidden categories within the knowledgebase that are only visible when viewing the kb in the admin area. http://docs.whmcs.com/Support_Center#Knowledgebase Enter a name and description to be displayed to clients. Tick the Hide checkbox to make this category invisible, it will only be visible in the admin area. Click Add Category. any articles you add to the hidden category/categories will also be hidden and not accessible directly from the client area kb. 0 Quote Link to comment Share on other sites More sharing options...
rodolphe Posted March 24, 2014 Author Share Posted March 24, 2014 Brilliant, thanks a lot! 0 Quote Link to comment Share on other sites More sharing options...
rodolphe Posted March 29, 2014 Author Share Posted March 29, 2014 OK, how does one search articles created in a hidden category? The admin area doesn't appear to allow searching. Or do I need to specifically index those articles so they appear as search results from the top-right-hand search box (what's that for anyway?) 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 30, 2014 Share Posted March 30, 2014 OK, how does one search articles created in a hidden category? The admin area doesn't appear to allow searching. I don't think you can. Or do I need to specifically index those articles so they appear as search results from the top-right-hand search box (what's that for anyway?) it's a quick search for finding existing clients, domains, products etc 0 Quote Link to comment Share on other sites More sharing options...
sol2010 Posted April 11, 2014 Share Posted April 11, 2014 I would love to know how to create a knowledgebase category that is hidden from public view, but available if you know the link. Anyone can help me? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 11, 2014 Share Posted April 11, 2014 I would love to know how to create a knowledgebase category that is hidden from public view, but available if you know the link. you could modify knowledgebase.tpl to not display certain categories by using {if} statements... foreach name=kbasecats from=$kbcats item=kbcat} {if $kbcat.id neq 4} <div class="col4"> <div class="internalpadding"> <img src="images/folder.gif" /> <a href="{if $seofriendlyurls}knowledgebase/{$kbcat.id}/{$kbcat.urlfriendlyname}{else}knowledgebase.php?action=displaycat&catid={$kbcat.id}{/if}" class="fontsize2"><strong>{$kbcat.name}</strong></a> ({$kbcat.numarticles})<br /> {$kbcat.description} </div> </div> {if ($smarty.foreach.kbasecats.index+1) is div by 4}<div class="clear"></div> {/if} {/if} {/foreach} in this case, it will prevent category id #4 from being displayed in the list of categories - but you can still you use its direct link - knowledgebase.php?action=displaycat&catid=4 - and it will be displayed. depending on its content, it might then also be useful to make any articles inside that category private - so only logged in clients can view it. one further thing you might need to do is to hide any articles within your "hidden" category from being shown in the "Most Popular Articles" section... {foreach from=$kbmostviews item=kbarticle} {if $kbarticle.id neq 24 and $kbarticle.id neq 26} <div class="row"> <img src="images/article.gif"> <a href="{if $seofriendlyurls}knowledgebase/{$kbarticle.id}/{$kbarticle.urlfriendlytitle}.html{else}knowledgebase.php?action=displayarticle&id={$kbarticle.id}{/if}" class="fontsize2"><strong>{$kbarticle.title}</strong></a><br /> {$kbarticle.article|truncate:100:"..."} </div> {/if} {/foreach} the category value isn't stored in the $kbarticle array, so you will need to add the article IDs that you want to hide to the {if} statement. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.