最近の検索


最近の検索はありません

How to include Article in Multiple Sections



投稿日時:2020年5月22日

How to add an HC Article to multiple sections (using a redirect)

Zendesk level:  Intermediate
Knowledge:  Javascript, Guide Template Editing
Time Required:  10 minutes

Documentation, customizations, and troubleshooting on GitHub: https://github.com/Ajhad1/Zendesk-Customizations/tree/main/Guide/How-to-include-Article-in-Multiple-Sections

Based/Inspired by https://support.zendesk.com/hc/en-us/articles/217958367-Redirecting-traffic-from-deleted-Help-Center-articles

Use Case:

My company has many articles that fall under multiple sections. To avoid having to update duplicate articles, we have elected on creating redirect articles that lead to the "correct" article but still allow the article to be listed in the section.

How it works (simplified):

If an article ID is a label in an article, the article will be redirected to the article ID in the label.

How to Use It:

Once the code has been implemented, all that is necessary is for an article ID to be added as a label to the article. 

Prerequisites:

  • You must be using Zendesk Help Center.
  • You must have access to the article_page.hbs file.
  • Your customers must allow Javascript in their browser.

How to Install:

  • Navigate to the Guide Admin Center to edit the themes.
  • Add the code to the respective location within the appropriate tags. GitHub
  • To test add an article ID to the tag of an article.
  • That's it.

Notes:

  • This is not a true duplicate or replication of data in the articles. It is simply a redirect to another article.
  • There is plenty of validation that can be added for article IDs added to the label.
  • This is more of a proof of concept than anything else.
  • It does work as is but there may be issues if the labels are not validated and an invalid label is added.
  • If anyone would like to add some validation or other code improvements, I have no issue with updating the article to reflect.
  • Removed the need to manually adjust the code for the specific subdomain and language. It should pull the current language and subdomain for use in redirection.

Troubleshooting:

https://github.com/Ajhad1/Zendesk-Customizations/blob/main/Guide/How-to-include-Article-in-Multiple-Sections


0

37

37件のコメント

サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿