【发布时间】:2013-02-13 00:15:14
【问题描述】:
在 modx 中,我有一个资源可以深入两个文件夹。我试图只显示父目录中的资源(而不是其子目录中的资源)。我的 getResources 调用在父资源中,内容如下:
[[!getResources?
&parents=`[[*id]]`
&showHidden=`1`
&includeContent=`1`
&includeTVs=`1`
&processTVs=`1`
&tvPrefix=``
&limit=`0`
&tpl=`Attractions Section`
&sortby=`menuindex`
&depth=`1`
]]
据我了解,depth 参数应该控制 gr 显示其资源的深度。我已将深度设置为 0 和 1,它仍在显示子目录中的所有资源。如何让它只显示当前目录的资源?
【问题讨论】:
标签: modx modx-revolution modx-resources