The Header template is rendered at the top of every page in the help center.

Available properties

You can use the following properties in the Header template.

NameTypeDescription
current_localeobjectA locale object corresponding to the one currently used by the user
alternative_localesarrayAn array of locale objects corresponding to all the available locales in help center except the current one
help_centerobjectA help_center object
settingsobjectA settings object
signed_inbooleanWhether the user is logged in or not
promoted_articlesarrayAn array of promoted article objects
featured_postsarrayAn array of featured post objects
ticket_formsarrayAn array of ticket form objects
brandobjectA brand object representing the current brand
userobjectA user object representing the current user

Available helpers

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

Example

<header class="header">  <div class="logo">    {{#link 'help_center'}}      <img src="{{settings.logo}}" alt="{{t 'logo'}}">    {{/link}}  </div>  <nav class="user-nav">    {{link "new_request" class="submit-a-request" role="button"}}  </nav></header>