lavender theme shows only one topic per category on the homepage



  • 0_1481205073082_lavender-only-one-topic-per-category.png

    I expect to see at least two recent topics per category, but I see only one. Where this limit is set?


  • Plugin & Theme Dev

    Yes, there is such a setting. Under category settings, you can set number of Recent Replies to each category.



  • 0_1481289540857_category-settings.png

    I changed the settings from Manage → Categories → Edit → # of Recent Replies → 10.

    But there was no effect.

    I tried to restart the NodeBB, but again, no effect.

    Only one topic with one reply per category is shown on the homepage:

    0_1481289712015_one.png

    I want to increase not only the number of replies, but also the number of topics per category.

    Something like this:
    correct example



  • It shows only recently added topics (added after I changed settings). I expected old topics to be shown too.


  • Plugin & Theme Dev

    @vstoykov

    I test it on my website, you can see the first category has 3 recent posts, it does work as soon as I saved the setting, and shows post even before 18 days.



  • I run Lavender theme and tested this out hoping to give a solution. I cannot seem to make this work like I expected either.

    Changing the "# of recent replies" value does work once I am off the "home" categories route. Ie., my home page only shows the most recent topic yet if I click into a category that has subcategories then multiple topics are displayed.

    Odd in deed!



  • Further experimentation has led me to this truth:

    Changing the # of recent replies does work on the home route if that category contains topics.

    If the category only has nested sub-categories then the # of recent replies does not have an effect.

    For example:

    Home displaying CatA displaying Multiple topics
    Home displaying CatB displaying CatC displaying Single topic


  • More oddities.

    I upgraded my test/dev environment from v1.0.2 to v1.4.0 and now only the most recent post is shown on the home route. Even for my categories that have no subcategories.

    😦


  • Plugin & Theme Dev

    @rod somewhere between NodeBB v1.0.0 and v1.4.0 there was a change in the way NodeBB stored and retrieved recent replies. There was an upgrade script which only took 1 recent reply. That's why you are only seeing most recent post.

    When new topics / replies are created, you will see multiple replies on the categories page.



  • @pichalite said in lavender theme shows only one topic per category on the homepage:

    When new topics / replies are created, you will see multiple replies on the categories page.

    I will double check that shortly but I believe in my post upgrade testing to v1.4.0 I made multiple new topics and replies in one particular category and only the most recent would display on the home route. I will confirm as soon as I can.



  • I will double check that shortly but I believe in my post upgrade testing to v1.4.0 I made multiple new topics and replies in one particular category and only the most recent would display on the home route. I will confirm as soon as I can.

    Only a single post is displaying on the home route after creating multiple topics and posts in the category.


  • Plugin & Theme Dev

    @rod are you sure that category has number of recent replies > 1 in the ACP?

    Other than that, no idea. Works fine for me.



  • @pichalite Yes I have confirmed it is set to the number 2.

    0_1481666480671_upload-990a56a8-46a1-403f-a20c-d91ea114971c



  • I even set to 3 recent replies, my board still display 1 topic on home


Log in to reply
 


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