最近搜索


没有最近搜索

[Gather] Adding agent badge in Communities



已于 2018年2月06日 发布

Hey guys,

I found a couple of articles on how to add the Agent badge in the Communities section and, while the codes worked for many, it didn't work for me.

In the end, where you edit the code, we had to add the following codes in the community_post_page.hbs page:

{{#if post.author.agent}}
<span title="{{post.author.name}}" class="moderator">
{{else}}
<span title="{{post.author.name}}">
{{/if}}

---> See image below:


and a bit further down, this code:

{{#if author.agent}}
<span title="{{author.name}}" class="moderator">
{{else}}
<span title="{{author.name}}">
{{/if}}

---> See image below:

Aside from that, we added this code that was provided from different articles at the very end of the page entitled style.ccs:

.moderator:after, .product-manager:after {
content: "Community Moderator";
background-color: #333;
border-radius: 3px;
color: white;
margin-left: 8px;
padding: 2px 5px;
font-size: 10px;

}

I hope this helps you guys!


0

54

54 条评论

请先登录再写评论。

其他内容

补充说明

找不到所需的内容?

新建帖子