2017-08-22 77 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會理解這一點,並深入到二級兒童:) –