We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27725
    • 9 Posts
    MODX Revolution 2.1.1-pl (traditional), getResources 1.3.0:

    I have 2 getResource Calls:

    [[!getResources?
    &parents=`9`
    &showHidden=`1`
    &depth=`0`
    &limit=`0`
    &sortby=`menuindex`
    &sortdir=`ASC`
    &tpl=`sidebarTpl`
    ]]

    20 Folder were found.

    The second Call on sidebarTpl:
    [[!getResources?
    &parents=`[[+id]]`
    &includeTVs=`1`
    &tvPrefix=``
    &tvFilters=`tagList==%[[*id]]%`
    &limit=`5`
    &tpl=`sidebarOutputTpl`
    ]]

    8 Resources with a corresponding tagList were found but limit=`5` has no effect.
    If i set limit=`5` at the first call, 5 Folder were found but only 2 results with corresponding tags.
    Is it possible to filter first and then set a limit for the results of the filter?