How to display replies and views in the category section? With a label saying replies and views. Posted a screenshot with the placement
AI-generated summary
A user asks how to display replies and views in the category section with labels, providing a screenshot of the desired layout. rishabh notes that no one has built this yet but suggests checking the Marketplace for quick solutions. CommunityJ seeks guidance on building it themselves. merefield explains that the data is likely available in the serializer and points to relevant code files and templates, suggesting modifications to the categories-topic-list and latest-topic-list-item templates. CommunityJ shares a code snippet that displays views in the latest tab but not the categories tab. merefield suggests adding a specific HTML snippet to display views and recommends learning Ember basics from the official guides.
I don’t think anyone has built this yet but if you need it done quickly, try the Marketplace.
Are there any resources that can help me build it myself or someone that can guide me through it? I am not in a rush
You’ll probably get away with building a Theme Component.
Looks like the data is probably in the Serializer already:
The serializer includes a TopicListSerializer:
So the data should be passed down to the Ember model.
You need to look at the templates.
Digging down those you get to this:
Then further this:
And down to this:
This is probably the one you need to modify.
You might refer to this for some ideas:
This is not entirely straightforward for someone not used to this, but persevere and you’ll get it to work.
However, consider baby steps. Consider a more simple change first to get used to doing this.
I suspect you only need to change a template or two, one for the header and another for each topic list item.
Have you tried adding this?:
<td class="num views {{topic.viewsHeat}}">{{number topic.views numberKey="views_long"}}</td>
Can’t promise that will work out of the box, but should get you working in the right direction.
Make sure you understand the basics of how Ember works. Maybe read this section of the Guides at a minimum: Templates are HTML - Components - Ember Guides

