comment.hbs 스크립트는 각 주석에 대한 전체 HTML을 만듭니다.
게시된 각 댓글 옆에 아바타를 표시하지 않으려면:
libs
에서 apps
로 comment.hbs
복사
/libs/social/commons/components/hbs/comments/comment/comment.hbs
/apps/social/commons/components/hbs/comments/comment
오버레이된 comment.hbs
열기
/apps/social/commons/components/hbs/comments/comment folder
에서 노드 comment.hbs
을 두 번 클릭합니다다음 줄을 찾아 삭제하거나 주석을 답니다.
<aside class="scf-comment-author">
<img class="scf-comment-avatar {{#if topLevel}}withTopLevel{{/if}}" src="{{author.avatarUrl}}"></img>
행을 삭제하거나 '<!—' 및 '—>'을(를) 주석 처리하여 또한 'xxx'라는 캐릭터를 아바타 위치에 대한 시각적 표시기로 추가할 예정이다.
<!-- do not display avatar with comment
<aside class="scf-comment-author">
<img class="scf-comment-avatar {{#if topLevel}}withTopLevel{{/if}}" src="{{author.avatarUrl}}"></img>
복제 도구를 사용하여 오버레이된 주석 구성 요소를 게시 인스턴스에 푸시합니다.
더욱 강력한 복제 방법은 패키지 관리자에서 패키지를 만들고 활성화하는 것입니다. 패키지를 내보내고 보관할 수 있습니다.
전역 탐색에서 도구 > 배포 > 복제를 선택한 다음 트리 활성화를 선택합니다.
시작 경로에 대해 /apps/social/commons
을 입력하고 활성화를 선택합니다.
관리자로 게시 인스턴스에 로그인하는 경우(예: 관리자/관리자로 http://localhost:4503/crx/de) 오버레이된 구성 요소가 있는지 확인할 수 있습니다.
페이지를 로그아웃한 다음 aaron.mcdonald@mailinator.com/password
(으)로 다시 로그인하고 새로 고치면 게시된 주석이 더 이상 아바타와 함께 표시되지 않고 간단한 'xxx'가 표시됩니다.