Show accumulated child category topics and posts on categories page



  • We have only four categories which hold all other subcategories and have no own topics or posts. Due to this, guests coming to the homepage, they get the impression we have no content yet. Is there a way to show accumulated counters on each category?
    Like this:

    • Cat A (88 topics, 2.316 posts)
      • Cat A.1 (51 topics, 754 posts)
      • Cat A.2 (29 topics, 1.242 posts)
      • Cat A.3 (8 topics, 320 posts)

  • Admin

    Lots of people ask for this, so I think it's probably expected behaviour.

    Not sure what sort of difficulties wed encounter if we decide to implement this.


  • Admin

    I will work on this, shouldn't be that hard. #famouslastwords


  • Admin

    This is commited to master now, it will only work for 1 level deep, since we don't recursively retrieve children categories.

    • Cat A (88 topics, 2.316 posts)
      • Cat A.1 (51 topics, 754 posts)
      • Cat A.2 (29 topics, 1.242 posts)
      • Cat A.3 (8 topics, 320 posts)

    Will work, but

    • Cat A (88 topics, 2.316 posts)
      • Cat A.1 (51 topics, 754 posts)
        • Cat A.1.1 (1 topics, 1 posts) //this wont be included on categories page
      • Cat A.2 (29 topics, 1.242 posts)
      • Cat A.3 (8 topics, 320 posts)


  • Thats fantastico, thank you baris! 😁



  • @baris you have any solution for the Cat A.1.1 ?


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.