Search Results page

Available properties

You can use the following properties in the search results template.

Name Type Description
query string The searched query
results_count integer The number of results of the search
article_results array An array of search result objects containing all the article results from the Knowledge base
post_results array An array of search result objects containing all the post results from the Community
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
breadcrumbs Breadcrumbs for the search page. See breadcrumbs helper
pagination Pagination links. See pagination helper


<nav class="sub-nav sub-nav-far clearfix">

<div class="search-results clearfix">
  <h1>{{results_count}} results found for "{{query}}"</h1>

  {{#each article_results}}
      <a href="{{url}}">{{title}}</a>
      <p class="search-result-description">{{text}}</p>

  {{#if account.community_enabled}}
    {{#each post_results}}
        <a href="{{url}}">{{title}}</a>
        <p class="search-result-description">{{text}}</p>