MODX革命:获得二级儿童



我有网址:somesite.com/mypage?clinic=21&spec=myspecialisation

在我的结构中,我有诊所 ->父母 ->最终资源来整理

我有这个:

[[!getPage? 
&elementClass=`modSnippet` 
&element=`getResources` 
&parents=`10,15,12`
&resources=`-7,-8`
&depth=`2`
&limit=`21` 
&pageVarKey=`page` 
&includeTVs=`1` 
&includeContent=`1` 
&tpl=`pageAllDoctors` 
&hideContainers=`true`
&sortby=`FIELD(modResource.id, 456,331,390,491,2756,505,634,699,941,1044,1377,1436,1449,1678,1722,1711,1828,2007,2094,2184,2324,2487,2527)`
&where=`[{"introtext:LIKE":"%[[!searchFieldClinic? &field=`spec`]]%", "AND:template:=":104}]`]]
[[+total:is=``:then=`&nbsp;&nbsp;&nbsp;&nbsp;nothing found.<br/><br/><br/>`:else=``]]

它对来自url &spec=myspecialisation的内向文本进行排序,非常好

问题:getPage 语句中的&parents=10,15,12 列表应该是页面列表,这些页面是 url 参数中指定的页面的子级clinic=21

我该怎么做? 提前非常感谢。

&parents='21' &hideContainers='1' 

您将隐藏诊所的孩子,这是其他资源的父母。也许你应该增加&depth

最新更新