Workflow: Display an article or section in multiple sections or categories

Help center content is organized in a Home > Categories > Sections > Articles structure. By default, each section belongs to only one category, and each article is assigned to a single section.

Alternatively, you can display links to specific articles or sections on the page you'd like them to be available by customizing the template for that section or category. Use the is property in the code to display the content in an additional section or category.

To do this, you need the ID of the section or category. The section or category ID is at the end of their URL. For example, this article is published in the category: https://support.zendesk.com/hc/en-us/categories/4405298745754. The category ID is 4405298745754.

Disclaimer: This article is provided for instructional purposes only. Zendesk doesn't support or guarantee the code. Post any issues in the comments section or search for a solution online.

This article contains instructions for the following:

Adding an article to a section

To add an article to a section:

In Knowledge, select Knowledge admin

Click the Customize design icon ( ) in the sidebar

From the theme you want to work with, click Customize

Click Edit code

In the template editor, under Files, open section_page.hbs

Place the code below the element, which belongs to the {{#if section.articles}} helper

{{#is section.id ######}}
Title of the article
{{/is}}

Click Publish

Adding a section to a category

To add a section to a category:

In Knowledge, select Knowledge admin

Click the Customize design icon ( ) in the sidebar

From the theme you want to work with, click Customize

Click Edit code

In the template editor, under Files, open category_page.hbs

Place the code below the .

{{#is category.id ######}}
Title of the section
{{/is}}

Click Publish

Adding an article to a category

To add an article to the category page within the {{#each section}} helper:

In Knowledge, select Knowledge admin

Click the Customize design icon ( ) in the sidebar

From the theme you want to work with, click Customize

Click Edit code

In the template editor, under Files, open category_page.hbs

Place the code below the {{#each sections}} helper

{{#is id ######}}
Title of the article
{{/is}}

Click Publish

Adding an article to an empty section

The workflow is different because the code incorporates the else /if statement that displays an empty link within the section.

To add an article to an empty section:

In Knowledge, select Knowledge admin

Click the Customize design icon ( ) in the sidebar.

From the theme you want to work with, click Customize

Click Edit code

In the template editor, under Files, open section_page.hbs

Replace the code that goes from {{else}} to {{/if}} with the code below

{{else}}
{{#is section.id ######}}


Title of the article


{{else}}

{{t 'empty'}}

{{/is}}
{{/if}}

Click Publish

Adding a section to an empty category

The workflow is different because the code incorporates the else /if statement that displays an empty link within the category.

To add a section to an empty category:

In Knowledge, select Knowledge admin

Click the Customize design icon ( ) in the sidebar

From the theme you want to work with, click Customize

Click Edit code

In the template editor, under Files, open category_page.hbs

Replace the code that goes from {{else}} to {{/i}} with the code below

{{else}}
{{#is category.id ######}}


Title of the section


{{else}}

{{t 'empty'}}

{{/is}}

Click Publish