Categories Navigation Standard Section

This is the list of all the categories under the Knowledge Base


Written By Guilherme de Andrade Arantes (Administrator)

Updated at October 21st, 2017

Users might not be searching using the search bar: They may want to navigate through the categories links and its subcategories links.

This is how you can create a simple Categories Navigation Section displaying all questions inside them:

<ul id="main_navigation">
{% for categories in roots_categories %}
  <li class="category_item">
    <h2>{{ }}</h2>
    {% if category.questions.size > 0 %}
      <ul class="question_list">
        {% for question in category.question %}
          <li><a href="{{ question.url }}">{{ }}</a>
        {% endfor %}
    {% endif %}
{% endfor %}

Was this article helpful?