變更外觀 alter-the-appearance
修改指令碼 modify-the-script
此 comment.hbs
指令碼負責為每個註解建立整體HTML。
不顯示每個張貼的評論旁的頭像:
-
複製
comment.hbs
從libs
至apps
- 選取
/libs/social/commons/components/hbs/comments/comment/comment.hbs
- 選取 複製
- 選取
/apps/social/commons/components/hbs/comments/comment
- 選取 貼上
- 選取
-
開啟覆蓋的
comment.hbs
- 按兩下節點
comment.hbs
在/apps/social/commons/components/hbs/comments/comment folder
- 按兩下節點
-
找出下列行,然後刪除或註解它們:
<aside class="scf-comment-author">
<img class="scf-comment-avatar {{#if topLevel}}withTopLevel{{/if}}" src="{{author.avatarUrl}}"></img>
請刪除線段或環繞線段 <!--
和 -->
所以您應將其註解。 此外,字元「xxx」會新增為顯示虛擬人偶位置的視覺指標。
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>
復寫覆蓋 replicate-the-overlay
使用復寫工具將覆蓋的註解元件推送至發佈例項。
NOTE
更強大的復寫形式是在封裝管理員中建立封裝,並且 啟用 it. 套件可以匯出和封存。
從全域導覽中選取 工具 > 部署 > 復寫 並按一下 啟動樹狀結構.
在起始路徑中,輸入 /apps/social/commons
並選取 啟動.
檢視結果 view-results
如果您以管理員身分登入發佈執行個體,例如https://localhost:4503/crx/de ,以管理員/管理員身分登入,則可驗證是否有覆蓋的元件。
如果您登出然後登入為 aaron.mcdonald@mailinator.com/password
並重新整理頁面,您會發現顯示的人偶沒有顯示張貼的評論。 而是顯示簡單的「xxx」。
recommendation-more-help
81e2cd9d-0789-409d-b87c-2a8ce4f28791