Diyorki
(Diyor ki )
4월 26, 2023, 8:53오후
1
안녕하세요 여러분. 모바일에서 사이트에 주제를 추가한 후, 해당 주제에 몇 명이 접속했는지 확인할 수 있는 방법이 없습니다. 모바일에서 크롬을 사용해 데스크톱 모드로 사이트를 확인해 보았지만, 컴퓨터에서 볼 때와 달리 몇 명이 주제를 열람했는지 보여주는 기능이 없습니다. 첨부한 사진들을 보시면 이해하실 수 있을 것입니다. 감사합니다.
Stephen
(Stephen)
4월 26, 2023, 9:29오후
2
주제에 답글이 있는 경우, 조회수도 주제 내부에 표시됩니다:
Canapin
(Coin-coin le Canapin)
4월 26, 2023, 9:52오후
3
안녕하세요!
@steven 님이 모바일 뷰를 변경하는 컴포넌트에서 보여 주듯, 템플릿을 오버라이드하여 이 정보를 추가할 수 있습니다. 컴포넌트 자체는 뷰 카운트를 추가하지 않지만, 템플릿에 카운트를 추가하는 방법을 설명하고 있습니다:
It’s doable
[image]
I don’t know if I would put this in the default settings, but if you want to try it, here is the code to add in the header section
{{d-icon "eye"}} {{number topic.views numberKey="views_long"}}
and
{{#if hasLikes}}{{d-icon "heart"}} <a href='{{topic.summaryUrl}}'>{{number topic.like_count}}</a>{{/if}}
For my screen, I used this:
<script type='text/x-handlebars' data-template-name='mobile/list/topic-list-item.hbr'>
<td class="topic-list-data">
{{~raw-plugin-outlet na…
템플릿 오버라이딩에 대한 자세한 정보는 여기에서 확인하세요: https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648#overriding-discourse-templates-23
아래 링크도 참고해 보세요: Display replies and likes count in mobile view
참고로, 이 링크들은 검색을 통해 찾았습니다