Using the Help Center templating language (Guide Professional and Enterprise)

Have more questions? Submit a request


  • Joakim Eide
    Comment actions Permalink

    I've been looking all over this place for a way to extract the first or nth- element from an array in this Curlybars langauge, can anyone help me with that? EVERY example in this place uses the #each, as if it's impossible to get the first article when you have the data available?

  • Trapta
    Comment actions Permalink

    Hi @Joakim Eide,

    You can use {{@index}} to get nth-element from an array. Please look at the below code to get an idea:

    {{#each categories}}
    {{#is @index 1}}
      // Your code goes here

    Let me know if this is what you are looking for.

    Team Diziana

  • Joakim Eide
    Comment actions Permalink

    Thanks a lot Trapta! I feel like I somewhere read that Curlybars is based on Handlebars and does not have all the functionality. So I felt it natural to assume that the functionality describe on Zendesks template language pages reflects all available functions.

    I'll check handlebars documentation from now on before I ask questions! :)

  • intakhab ali
    Comment actions Permalink

    hi, i am trying to create customize the community page I want a list of topic and list of post in the same page, is it possible

  • Devan
    Comment actions Permalink

    Hello Intakhab,

    This is possible through the use of custom code. I've gone ahead and linked an article below that describes how to begin this process in further detail.

    Customizing your Help Center

    Best regards!

  • Chris Cardone
    Comment actions Permalink

    Would it be possible to hide/show content on the basis of user tags or user segment?


    {{#if user.tag 'agency'}}

    <div>Agency Specific Content</div>


  • Erika Camille Sundian
    Comment actions Permalink

    Hello Chris Cardone,

    You can specify tags in user segments. User segment is the way to hide/show content in your Help Center.
    Let me know if you have any questions! :)

Please sign in to leave a comment.

Powered by Zendesk