最近搜索


没有最近搜索

Guide Article - How to show date and author only to Team Members

已回答


已于 2023年5月04日 发布

Hello,

please could anybody explain me how to update the template article_page.hbs so that the contents of class="article-author" (author name, last updated date, etc.) are visible only to staff members, not to external users?

Many thanks,

Franca


0

2

2 条评论

image avatar

Zsa Trias

Zendesk Customer Care

Hello Franca,

This seem to be possible thru JS customization. You can add the following lines on your script.js template:

// Hide article-author div for non-agents
if (HelpCenter.user.role=="anonymous"){
$("div.article-author").hide();
}
if (HelpCenter.user.role=="end_user"){
$("div.article-author").hide();
}

Please do note, the above code is provided without warranty or guarantee that it will continue to function as the product changes.

0


Hi Zsa,

thank you for your precious help!

0


请先登录再写评论。

找不到所需的内容?

新建帖子