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

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. You can use the following helpers in this page template. You can also use any built-in helpers, global helpers, or global advanced helpers.

NameDescription
my_profileShows the current user's profile. See my_profile helper
change_passwordShow the change password modal. See change_password helper

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>