Contributions page
The Contributions page template is rendered when an end user selects My Activities and clicks Contributions.
Available properties
You can use the following properties in the Contributions page template.
Name | Type | Description |
---|---|---|
current_filter | object | The current filter object |
contributions | array | An array of contribution objects, filtered by current_filter |
filters | array | An array of filter objects for the page |
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 Contributions page. See breadcrumbs helper |
pagination | Pagination links. See pagination helper |
Example
<header class="my-activities-header">
{{breadcrumbs}}
</header>
<nav class="my-activities-sub-nav nav-bordered">
<ul>
{{#each filters}}
<li>
{{#if selected}}
{{name}}
{{else}}
<a href="{{url}}">{{name}}</a>
{{/if}}
</li>
{{/each}}
</ul>
</nav>
<div class="contributions-list">
<ul>
{{#each contributions}}
<li>
<a href="{{url}}">
{{title}} ({{type}})
</a>
</li>
{{/each}}
</ul>
</div>