MODX Community

Pdoresources bug? does not limit results to parent when using where clause

I am trying to use the &where clause on pdoresources to retrieve articles form an article container, but it brings results from all article containers in the tree, not just the parent I assign to it, has anyone ever come across this? here is my snippet call

[[
pdoResources?
            &parents=`38`
            &depth=`0`
            &tpl=`events row`
            &includeContent=`1`
            &includeTVs=`image`
            &limit=`0`
            &sortdir=`asc`
            &showDeleted=`0`
            &showUnpublished=`0`
            &where=`{"pagetitle:LIKE":"%lorem%", "OR:content:LIKE":"%lorem%"}`
]]
1 Like

I might have encountered something similar in the past and afaik I ended up excluding all unwanted parents specifically like

&parents=`38,-3,-25`

This is not ideal of course, but might be worth a try.

2 Likes

thank you for taking the time to reply

my solution was this

&where=`[{“parent:=”:"[[*id]]"}

1 Like