New to Zendesk - How to create dynamic content in KnowledgeBase articles?

4 Comments

  • Chris Coutts
    Comment actions Permalink

    Or could I simply use jQuery to build the table from the JSON?

    0
  • Justin Helley
    Comment actions Permalink

    Hey Chris,

    Great question!  Currently there's no built-in way to embed dynamic content within Help Center articles.  You may be able to add content to your JS tab in the Help Center customizations, which can definitely utilize jQuery.  I think a limitation of this solution is that you would need a separate script for each article.  If you have a few articles this shouldn't be too onerous.  Let us know what you're able to come up with!

    0
  • Chris Coutts
    Comment actions Permalink

    Thanks for your reply Justin. I'll give that a go... I think I can use JQuery and Knockout to bind some data to a table: http://stackoverflow.com/questions/17066636/parsing-json-objects-for-html-table 

    0
  • Rob Baker
    Comment actions Permalink

    I used a JSON object defined in the document_header.hds template that included a similar mapping.  I like your use case for article relevancy though.  How did you tap in to the content itself?  I tried unsuccessfully with the SPAN tag but it gets stripped by the article code editor.  Also for anyone else interested in other use cases just as account-specific dynamic data, I just published a similar technique in detail here: https://www.linkedin.com/pulse/how-create-dynamic-account-specific-content-zendesk-help-rob-baker/

    0

Please sign in to leave a comment.

Powered by Zendesk