如何使用getResources擺脫幾個節點父資源的資源樹〜只有一次〜也就是我有一個getResources撥打:如何使用modx getResources僅返回一次父資源?
[[!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"}`
]]
凡&父母ID是要搜索的樹木,有可能是每個家長的幾個新資源。我需要獲得資源來回報父母&項目「但只有一次」
因爲如果父母738,748。807 & 3401每個下面有4個或5個新的資源,我不想做738例父資源得到3次返回,我需要~738,748,&807的父母返回。
有關如何做到這一點的任何想法? [modx revolution 2.2.12]
很難理解,而不截圖你的資源樹。 – Vasis