We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    Hi I am using the following call on my page:

    [[!getPage@newsPaging? &elementClass=`modSnippet` &element=`getResources` &showHidden=`1` &tpl=`Animalgroup_lists` &limit=`5` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &parents=`28` &depth=`1` &pageLimit=`2` &pageNavVar=`page.nav` ]]
    
    Page [[+page]] of [[+pageCount]] [[!+page.nav]]


    I want the results to show the children in resource id 28, which it does, but it also show s the children of those resources too (in affect the grandchildren of id 28). I added the &depth=`1` parameter hoping that it would only search 1 level but it still searches 2 levels. How can I stop this?

    Regards,
    DS [ed. note: distant_smile last edited this post 12 years, 4 months ago.]
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Have you tried &depth=`0`?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 7527
        • 437 Posts
        Worked a treat, thank you once again!
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk