최근 검색


최근 검색 없음

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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물