Section page

The Section page template is rendered when a user clicks a link to any section in Help Center.

Available properties

You can use the following property in the Section page template.

Name Type Description
section object Asectionobject
promoted_articles array An array of promotedarticle对象
ticket_forms array An array ofticket form对象
help_center object Ahelp_centerobject that holds information and settings about the current help center
settings object Asettingsobject with custom settings for the current theme
signed_in boolean Whether the user is logged in or not
featured_posts array An array of featuredpost对象

Available helpers

You can use the following helpers in this page template. You can also use anybuilt-in helpers,global helpers, orglobal advanced helpers.

Name Description
breadcrumbs Breadcrumbs for the current page. Seebreadcrumbs helper
pagination Pagination links. Seepagination helper
subscribe A link to follow or unfollow new articles or comments in the section

Example

             
<navclass="sub-nav">{{breadcrumbs}}{{subscribe}}nav><h1>{{section.name}}h1><pclass="section-description">{{section.description}}p>{{#if section.articles}}<ulclass="article-list">{{#each section.articles}}<liclass="article"><ahref="{{url}}">{{title}}a>li>{{/each}}ul>{{else}}<iclass="section-empty"><ahref="{{section.url}}">{{t 'empty'}}a>i>{{/if}}{{pagination}}