最近の検索


最近の検索はありません

[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件のコメント

サインインしてコメントを残してください。

その他のコンテンツ

詳細

お探しのものが見つかりませんか?

新規投稿