Canapin
(Coin-coin le Canapin)
April 26, 2023, 9:52pm
3
Hi!
You can override the template and add this information, as @steven shows here in his component that changes the mobile view. The component itself doesn’t add the view count, but he explains how to add the count in the template:
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 nam…
More info about overriding template: https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648#overriding-discourse-templates-23
You can also have a look at this: Display replies and likes count in mobile view
I found the links using the search by the way
5 Likes