Home page

The Home page template is rendered when a user navigates to the main page of Help Center.

Available properties

You can use the following properties in the Home page template.

Name Type Description
categories array An array category objects
has_multiple_categories boolean Whether there is more than one category visible for the current user
promoted_articles array An array of promoted article objects
ticket_forms array An array of ticket form objects
help_center object A help_center object that holds information and settings about the current help center
settings object A settings object with custom settings for the current theme

Available helpers

You can use the following helpers in this page template. You can also use any built-in helpers, global helpers, or global advanced helpers.

Name Description
pagination Pagination links. See pagination helper
category_tree_with_article A category list with sections and articles. See category_tree_with_article helper

Example

<section class="hero-unit">
  {{search}}
</section>

<div class="knowledge-base">
<ul>
{{#each categories}}
  <li class="category-name">
    <a href="{{url}}">{{name}}</a>
    <ul>
    {{#each sections}}
      <li class="section-name">
        <a href="{{url}}">{{name}}</a>
      </li>
    {{/each}}
    </ul>
  </li>
{{/each}}

{{pagination}}
</ul>
</div>