2017-08-22 76 views
0

我有网址:somesite.com/mypage?clinic=21 &规格= 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 &规格= myspecialisation完全没有采取introtext页面

问题:&parents= 10,15,12列表中GETPAGE的说法应该是那是在clinic=21参数中的URL

指定的页面的孩子我该怎么做网页列表? 非常感谢。

回答

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

你会隐藏门诊的儿童,这是其他资源的家长。也许你应该增加&depth

+0

因为它恰好&父母='[[!searchFieldClinic? &field ='clinic']]'很好。没想到Modx会理解这一点,并深入到二级儿童:) –