贡献页面
贡献页面
当最终用户进行选择时,将呈现“贡献”页模板我的活动并单击贡献。
可用的属性
您可以在“贡献”页模板中使用以下属性。
名字 | 类型 | 描述 |
---|---|---|
current_filter | 对象 | 当前的<一个href="//www.ying8.net/documentation/help_center/help-center-templates/objects">过滤器一个>对象 |
贡献 | 数组 | 的数组<一个href="//www.ying8.net/documentation/help_center/help-center-templates/objects">贡献一个>对象,由current_filter |
过滤器 | 数组 | 的数组<一个href="//www.ying8.net/documentation/help_center/help-center-templates/objects">过滤器一个>页面的对象。 |
promoted_articles | 数组 | 一组提升的<一个href="//www.ying8.net/documentation/help_center/help-center-templates/objects">文章一个>对象 |
ticket_forms | 数组 | 的数组<一个href="//www.ying8.net/documentation/help_center/help-center-templates/objects">票的形式一个>对象 |
help_center | 对象 | 一个<一个href="//www.ying8.net/documentation/help_center/help-center-templates/objects">help_center一个>对象,该对象保存有关当前帮助中心的信息和设置 |
设置 | 对象 | 一个<一个href="//www.ying8.net/documentation/help_center/help-center-templates/objects">设置一个>对象使用当前主题的自定义设置 |
signed_in | 布尔 | 用户是否登录 |
featured_posts | 数组 | 一组有特色的<一个href="//www.ying8.net/documentation/help_center/help-center-templates/objects">帖子一个>对象 |
可用的助手
您可以在此页面模板中使用以下帮助程序。你也可以使用any<一个href="//www.ying8.net/documentation/help_center/help-center-templates/helpers">内置的助手一个>,<一个href="//www.ying8.net/documentation/help_center/help-center-templates/helpers">全球助手一个>,或<一个href="//www.ying8.net/documentation/help_center/help-center-templates/advanced_helpers">全球高级助手一个>。
名字 | 描述 |
---|---|
面包屑 | 贡献页面的面包屑。看到<一个href="//www.ying8.net/documentation/help_center/help-center-templates/helpers">面包屑的助手一个> |
分页 | 分页链接。看到<一个href="//www.ying8.net/documentation/help_center/help-center-templates/helpers">分页助手一个> |
例子
<头类="my-activities-header">
{{面包屑}}
头>
<导航类="my-activities-sub-nav nav-bordered">
<ul>
{{#每个过滤器}}
<李>
{{#如果选择}}
{{名称}}
{{其他}}
<一个href="{{url}}">{{名称}}一个>
{{/如果}}
李>
{{/每个}}
ul>
导航>
<div类="contributions-list">
<ul>
{{#每个贡献}}
<李>
<一个href="{{url}}">
{{标题}}({{类型}})
一个>
李>
{{/每个}}
ul>
div>