How to display replies and views in the category section? With a label saying replies and views. Posted a screenshot with the placement
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.
This chunk of code displays the views in the latest tab, not in the categories tab. Any easy way for it also work for the categories tab?
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