Invalid reference (categories)

4 Comentários

  • Trapta
    Community Moderator

    Hi @Rian,

    Zendesk provides this component ( {{categories}} ) only on the homepage.

    So if you are using it on a homepage, use it with "each". Something like this -

    {{#each categories}} {{/each}}

    as it is an array of categories you have to iterate it.

    If you are on category template, this component ( {{categories}} ) will not work. You have to use something like this -

    {{category.name}}

    and it will provide you details about the current category.

    To know more about it, please refer to the documentation about homepage and category template.

    Let me know if you need face any issue.

     

    Team Diziana

    0
  • Jeroen van der Sandt

    Not all properties are available in all parts of Guide; you can see what's available where, here: https://developer.zendesk.com/apps/docs/help-center-templates/introduction 

    0
  • Rian Dutra

    Ok, but how would be the solution?

    I could do it using JSON, but it is not pratical at all.

    0
  • Trapta
    Community Moderator

    @Rian,

    If you are doing it using JSON, then you can use localStorage to persist your data.

    2

Por favor, entrar para comentar.

Powered by Zendesk