We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    Quote from: futurist at Oct 06, 2010, 03:19 PM

    It seems strange to me that there is `modResource`.`parent` IN (1,26,10,24) in the query, when there should only be one parent (1)? (1 is the id of the resource - a container - that uses the template containing the call. 26,10 and 24 are children inside that container.)
    That is correct; it should be the entire list of "direct" parents based on the depth you are querying. Select where parent in 1 will only get direct parents of 1, so in order to get the children of 26, 10, and 24, they have to also be listed.

    Perhaps the Resources are hidden from menu or not published?
      • 10323
      • 35 Posts
      Good hint, Jason: I had not noticed that getResources by default only returns resources that are not hidden from menus... Got it working with this call: [[!getResources? &parents=`[[*id]]` &tpl=`teaser` &includeContent=`1` &showHidden=`1`]] even when they are hidden.