How can I use getResources to get the parent resource from several nodes in a resource tree ~only once~ i.e. I have a getResources call:
[[!getResources?
&parents=`738,746,1222, 748, 1216, 805, 806, 807, 3401`
&tpl=`SecondaryUpdatesHomePageTpl`
&limit=`3`
&includeTVs=`1`
&processTVs=`1`
&hideContainers=`1`
&includeContent=`0`
&depth=`1`
&sortby=`{"createdon":"desc"}`
]]
Where the &parents ids are the trees to be searched, there may be several new resources in each parent. I need get resources to return the parent resource of the &parents items 'but only once'
For example if parents 738, 748. 807 & 3401 each have 4 or 5 new resources under them, I don't want 738 getting returned 3 times, I need ~the parents of~ 738, 748 & 807 returned.
Any thoughts on how to do this? [modx revolution 2.2.12]