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 -


    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

  • Jeroen van der Sandt

    Not all properties are available in all parts of Guide; you can see what's available where, here: 

  • Rian Dutra

    Ok, but how would be the solution?

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

  • Trapta
    Community Moderator


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


Por favor, entrar para comentar.

Powered by Zendesk