Community Topic List page
Community Topic List page
The Community Topic List page template is rendered when a user navigates to https://{yoursubdomain}.zendesk.com/hc/{locale}/community/topics.
Available properties
| Name | Type | Description |
|---|---|---|
| topics | array | An array of topic objects |
| 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 |
| signed_in | boolean | Whether the user is logged in or not |
| featured_posts | array | An array of featured post objects |
| brand | object | A brand object representing the current brand |
| user | object | A user object representing the current user |
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 Topic list page. See breadcrumbs helper |
| pagination | Pagination links. See pagination helper |
Example
<nav class="sub-nav">{{breadcrumbs}}{{search}}</nav><header class="page-header"><span class="dropdown"><span class="dropdown-toggle"><h1>{{t 'community'}}</h1></span><span class="dropdown-menu" role="menu">{{link 'topics' role='menuitem' selected='true'}}{{link 'posts' role='menuitem'}}</span></span><span class="post-to-community">{{link 'new_post' role='button'}}</span></header>{{#unless topics}}<p>{{t 'no_content'}}</p>{{/unless}}<ul class="topic-list">{{#each topics}}<li><h3>{{#if internal}}<span class="visibility-internal" data-title="{{t 'internal'}}"><span class="visibility-internal-icon"></span></span>{{/if}}<a href="{{url}}">{{name}}</a></h3><p>{{excerpt description}}</p><span class="meta-group"><span>{{t 'post_count' count=post_count}}</span><span>{{t 'follower_count' count=follower_count}}</span></span></li>{{/each}}</ul>{{pagination}}