How do I get the number of posts on a particular topic?


3 Kommentare

  • Maggie Ungerboeck
    Aktionen für Kommentare Permalink

    Hi Robbie,

    I'm not technical so my help is limited but wanted to share what we have in case it of assistance to you.

    We have this same concept on our home page but we call them "replies" instead of post.

    This is the code  I see on the home_page.hbs (based on the Copenhagen theme) for this:

    <a :href="post.html_url" class="communitysections-links">{[{post.title}]}</a>
    <p class="votes-comments-follows"><span class="communitysections-comments">{[{post.comment_count}]} Replies</span></p>

    I don't see anything in our script.js file around replies so from what I can tell, it's all handled in the home_page.hbs.

    Hopefully that is some kind of help!



  • Nicole - Community Manager
    Aktionen für Kommentare Permalink

    Thanks so much for sharing your solution, Robbie Carew. Do you mind if I move it over to the User Tips & Tricks topic? 

  • Robbie Carew
    Aktionen für Kommentare Permalink

    That is more than fine with me Nicole :)


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk