Using the help center templating language

Return to top

8 Comments

  • Steve Graham

    Is there a way to create a custom boolean?  For example, we'd like to create a boolean called "legacyproduct" to use in an #if loop in order to attach a class to an element.

    0
  • Kay
    Community Moderator

    Hi Steve,

    At the moment this doesn't appear to be possible with the Templating Language.
    I would recommend doing it with Javascript. And then map this there.

    0
  • Ellis Simpson

    On category and section pages, I want to display the text from each article which is between each article's h1 tags (rather than what is in each title tag). 

    I assume the relevant code will go in category-page.hbs and section_page.hbs.

    This is, I think, what currently displays the title.

    <a class="article-list-item__link" href="{{url}}">{{title}}</a>

    Is such an action possible? If so, how in rough outline can you do that?

    0
  • Nathan Purcell

    "Note that nesting a pair of curlies within other pair of curlies is not valid syntax"

    How then would you go about achieving this? 

    Example: I want to set the placeholder of the search field to be some dynamic content: 

    {{search instant=true placeholder={{dc 'key'}} }}
    0
  • Augusto Silva
    Zendesk Engineering

    Hey Nathan Purcell,

    That can be achieved with subexpressions - have a look here https://developer.zendesk.com/documentation/help_center/help-center-templates/introduction/#subexpressions 😊

    1
  • Jeysa

    We've implemented the custom launcher for the web widget and now in the guide screen there is no messaging widget... I'd would like to know if there is a way to add this custom launcher to the guide through HBS. In case it's not possible, I would like to know what is the suggestion for us to be able to use the widget in all platfoms (our product and the zendesk guide).

    0
  • Joyce
    Zendesk Customer Care
    Hello SIMFaz Suporte,
     
    I see the ticket you opened for this query and my colleague suggested that you disable the setting Automatically embed web widget in your help center and then add your widget code in the header.hbs template of your Help Center page as shown in the image below. 
    image.png
     
    We're glad to know that this works for you!
     
    0
  • Abdelhameed Khaled

    Hello the data in the following text is connected to help center templates and how can I access  

    "Every template in the help center has access to a context that represents data about your help center. For instance, the Article Page template has an object named article that exposes the structure of the article requested by the users."

    0

Please sign in to leave a comment.

Powered by Zendesk