We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26546
    • 3 Posts
    I am using getResources to build a simple menu to some categories and so far everything was working fine, until I added a new document in the parent of the categories, which I expected to come at the end of the menu, making sure the menu index was one more value (n°6) to have it in the right order.

    But this new children document does not show in the menu!
    It just retrieves the first 5 items and no more.
    I checked that documents were the same (I even had a duplicate of one which was retrieved).
    Only 5 items show in the source of the document.

    When I change the index value to 0 of that last document, it comes in first place and makes the n°5 not show...

    I am using MODx Revolution 2.0.4-pl2 + getResources 1.2.2

    My snippet call is as follows:

    [[!getResources? &parents=`4` &tpl=`tpl_mainmenu` &tplLast=`tpl_mainmenulast` &depth=`0` &sortby=`menuindex` &sortdir=`asc`]]


    I really do not see why?
    A bug with menuindex handling by getResources?

    Thanks for your help.
      • 36493
      • 64 Posts
      The default &limit is 5

      Set your own in your call and you will be fine.
        |
        • 26546
        • 3 Posts
        Thanks!
        So obvious I should have seen this, but well, sometimes you get tired and confuse as where to search further.