knowledge base sections | Community
Skip to main content

knowledge base sections

  • November 9, 2023
  • 5 replies
  • 0 views

Elizabeth22

Hi,

I'm using Zendesk Professional. We are in the process of changing products and want to develop new sections and articles before rollout. I know I can create draft articles in existing sections of the knowledge base but can I create a draft section and not have it visible to the public?

5 replies

Pulkit12
  • November 10, 2023

Hi Elizabeth Churchill

Perform the following steps to create a draft section that is not visible to the end user.

Step 1

 

Step 2 

 

Let me know if it solves your issue.

 

Thank You 

Pulkit 
Team Diziana


Elizabeth22
  • Author
  • February 28, 2024

Apologies for the delayed response. Yes - that worked great. Thank you.  So now I have several draft sections with multiple articles in each section. If I uncheck the mark as draft box - will all the articles in that section be published? 


  • February 29, 2024

Hi @elizabeth22,

When a section is marked as draft, articles within it will also not be shown to users. However, once you uncheck the mark as a draft checkbox, the articles will be displayed in the help center for users if the article is published. Unchecking the draft box for the section does not automatically publish the articles under the section.

The access also depends on the article's visibility permission (Ex. Everyone, signed-in users, agents or admins).


Heather17
  • January 3, 2025

Hi I use a script to generate a TOC but my draft sections seem to still show when I view the theme as an end user but when they click on the draft section it shows a broken link page. I want to hide the draft section but I don't know what the code would be to hide it. Are you able to help me at all identify the code? I've checked the API article and it doesn't seem to mention the draft option: https://developer.zendesk.com/api-reference/help_center/help-center-api/sections/


Elaine14
  • July 6, 2025
Hi Heather,
 
Thanks for reaching out with your question about hiding draft sections in your Help Center theme.
 
Draft sections often still appear in the API and can show as broken links for end users since they aren’t published yet. Unfortunately, there isn’t a direct API flag for draft status that you can query to exclude them automatically.
 
A common approach is to use JavaScript or CSS within your theme to detect and hide these draft sections from the end user view. For example, you could check if the section URL is returning a 404 and then dynamically remove or hide that link from the Table of Contents.
 
Another option is to manually add a specific CSS class or data attribute to your draft sections and then style them with display: none; in your theme’s CSS. While this requires some manual tagging, it’s effective in preventing broken links from showing.
 
If you need, I can help review your current script or provide sample code snippets to implement this solution.
 
Hope this helps!